/* ================================================================
   LEGAL & CONTACT PAGES
   ================================================================ */

.legal-section {
  padding: 56px 0 80px;
  background: var(--ivory);
}

.legal-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

/* Sticky table of contents */
.legal-toc {
  background: var(--paper);
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--cream);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 24px;
  height: fit-content;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.legal-toc h3 {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--maroon-deep);
  margin-bottom: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-soft);
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
}
.legal-toc a {
  font-size: 13px;
  color: var(--ink-soft);
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1.4;
}
.legal-toc a::before {
  content: counter(toc) ".";
  display: inline-block;
  width: 22px;
  color: var(--gold);
  font-weight: 700;
}
.legal-toc a:hover {
  background: var(--cream);
  color: var(--maroon);
  transform: translateX(2px);
}

/* Main content */
.legal-content {
  background: var(--paper);
  padding: 48px 56px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream);
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.8;
}

.legal-content section {
  margin-bottom: 36px;
  scroll-margin-top: 100px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--maroon-deep);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-soft);
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--maroon);
  margin: 24px 0 12px;
  font-weight: 600;
}

.legal-content h4 {
  font-size: 16px;
  color: var(--maroon-deep);
  margin: 16px 0 8px;
  font-weight: 600;
}

.legal-content p {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.8;
}

.legal-content strong {
  color: var(--maroon-deep);
  font-weight: 600;
}

.legal-content ul, .legal-content ol {
  margin: 14px 0 18px 0;
  padding-left: 28px;
}
.legal-content li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}
.legal-content li strong { color: var(--maroon-deep); }

.legal-content a {
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.15s;
}
.legal-content a:hover { color: var(--maroon-deep); }

/* Highlight box */
.legal-highlight {
  background: linear-gradient(135deg, var(--cream) 0%, rgba(244, 215, 122, 0.15) 100%);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 32px;
}
.legal-highlight h3 {
  margin-top: 0;
  color: var(--maroon-deep);
  font-size: 17px;
}
.legal-highlight p {
  margin: 0;
  font-size: 15px;
}

/* Policy cards (Refund page) */
.policy-card {
  padding: 18px 22px;
  border-radius: 10px;
  margin: 14px 0;
  border-left: 4px solid;
}
.policy-card h4 { margin-top: 0; }
.policy-card p { margin-bottom: 0; font-size: 14px; }
.policy-card.eligible {
  background: rgba(31, 94, 42, 0.06);
  border-left-color: #1f5e2a;
}
.policy-card.eligible h4 { color: #1f5e2a; }
.policy-card.not-eligible {
  background: rgba(198, 40, 40, 0.05);
  border-left-color: #c62828;
}
.policy-card.not-eligible h4 { color: #c62828; }

/* Process steps */
.process-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.process-steps > li {
  counter-increment: step;
  position: relative;
  padding: 14px 14px 14px 56px;
  background: var(--ivory);
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid var(--gold);
}
.process-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.process-steps ul {
  margin-top: 8px;
  padding-left: 20px;
}
.process-steps ul li {
  background: none;
  padding: 0;
  border: none;
  margin-bottom: 4px;
}
.process-steps ul li::before { display: none; }

/* Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.legal-table th {
  background: var(--cream);
  color: var(--maroon-deep);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.legal-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-top: 1px solid var(--cream);
}
.legal-table tr:hover td { background: rgba(244, 215, 122, 0.05); }

/* Cookie cards */
.cookie-card {
  padding: 22px 24px;
  border-radius: 12px;
  margin: 16px 0;
  border: 1px solid var(--cream);
}
.cookie-card.essential   { background: rgba(31, 94, 42, 0.04); border-left: 4px solid #1f5e2a; }
.cookie-card.analytics   { background: rgba(33, 150, 243, 0.04); border-left: 4px solid #1976d2; }
.cookie-card.advertising { background: rgba(212, 160, 23, 0.05); border-left: 4px solid var(--gold); }
.cookie-card.preferences { background: rgba(122, 31, 46, 0.04); border-left: 4px solid var(--maroon); }
.cookie-card h3 { margin-top: 0; }

/* Contact card */
.legal-contact-card {
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 100%);
  color: var(--gold-soft);
  padding: 24px 28px;
  border-radius: 12px;
  margin-top: 16px;
}
.legal-contact-card p {
  color: var(--gold-soft);
  margin-bottom: 8px;
  font-size: 14px;
}
.legal-contact-card strong { color: var(--paper); font-size: 16px; }
.legal-contact-card a { color: var(--gold-soft) !important; text-decoration: underline; }
.legal-contact-card a:hover { color: white !important; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */

.contact-section {
  padding: 56px 0 64px;
  background: var(--ivory);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h2,
.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--maroon-deep);
  margin-bottom: 12px;
  font-weight: 700;
}
.contact-intro {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--cream);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.contact-method.whatsapp:hover { border-color: #25D366; }
.contact-method.address {
  cursor: default;
}
.contact-method.address:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.cm-icon {
  font-size: 28px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 14px;
  flex-shrink: 0;
  color: var(--maroon);
}
.contact-method.whatsapp .cm-icon { background: #E7F8E9; color: #25D366; }
.contact-method.email .cm-icon    { background: #FEF3E2; }
.contact-method.phone .cm-icon    { background: #E3F2FD; }

.cm-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 2px;
}
.cm-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--maroon-deep);
  margin-bottom: 2px;
}
.cm-note {
  font-size: 12px;
  color: var(--ink-soft);
}

.business-hours {
  background: var(--paper);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--cream);
  margin-bottom: 24px;
}
.business-hours h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--maroon-deep);
  margin-bottom: 14px;
  font-weight: 700;
}
.business-hours table {
  width: 100%;
  font-size: 14px;
}
.business-hours td {
  padding: 6px 0;
  color: var(--ink);
}
.business-hours td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--maroon);
}
.hours-note { color: var(--ink-soft); margin-top: 8px; }

.contact-social h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--maroon-deep);
  margin-bottom: 12px;
  font-weight: 700;
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  width: 42px;
  height: 42px;
  background: var(--paper);
  border: 1px solid var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  transition: all 0.2s;
}
.social-icons a:hover {
  background: var(--maroon);
  color: var(--gold-soft);
  border-color: var(--maroon);
  transform: translateY(-2px);
}

/* Contact form */
.contact-form-wrap {
  background: var(--paper);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--cream);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .auth-field { margin-bottom: 18px; }
.contact-form textarea { resize: vertical; min-height: 130px; }

.form-note {
  margin-top: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* FAQ Section */
.faq-section {
  padding: 64px 0 80px;
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 32px auto 0;
}

.faq-item {
  background: var(--ivory);
  border-radius: var(--radius);
  border: 1px solid var(--cream);
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item:hover { border-color: var(--gold-soft); }
.faq-item[open] {
  background: var(--paper);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--maroon-deep);
  font-family: var(--font-display);
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--cream);
  color: var(--maroon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--maroon);
  color: var(--gold-soft);
}
.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin: 0;
}
.faq-item a {
  color: var(--maroon);
  text-decoration: underline;
  font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .legal-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal-toc {
    position: static;
    max-height: none;
  }
  .legal-content { padding: 32px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 600px) {
  .legal-content { padding: 24px 18px; }
  .legal-content h2 { font-size: 20px; }
  .legal-content h3 { font-size: 16px; }
  .cm-icon { width: 48px; height: 48px; font-size: 22px; }
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 8px 10px; }
}
