.page-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.page-hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

.page-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.35s;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure header is visible on subpages */
.header.page-header {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- MAIN SECTION ---------- */
.terms-section {
  padding: 5rem 2rem 6rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.terms-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- META ---------- */
.terms-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 1.5rem 2rem;
  background: var(--cream-dark);
  border-radius: 16px;
}

@media (max-width: 600px) {
  .terms-meta {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.terms-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.terms-meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warm-gray);
}

.terms-meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.terms-meta-value a {
  color: var(--orange-dark);
  text-decoration: none;
  font-weight: 700;
}

.terms-meta-value a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* ---------- CONTENT ---------- */

.terms-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--cream-dark);
  border-radius: 16px;
  border-left: 4px solid var(--orange);
}

.terms-intro p {
  margin: 0;
}

/* Section Blocks */
.terms-section-block {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(61, 52, 40, 0.1);
}

.terms-section-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.terms-heading {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.terms-subheading {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.terms-section-block > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.terms-section-block > p:last-child {
  margin-bottom: 0;
}

/* Lists */
.terms-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.terms-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.terms-list li:last-child {
  margin-bottom: 0;
}

.terms-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.terms-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Links in body */
.terms-content a {
  color: var(--orange-dark);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.terms-content a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* ---------- TABLE (PRIVACY-SPECIFIC) ---------- */
.legal-table-wrap {
  margin-top: 1.5rem;
  border-radius: 16px;
  padding: 1rem;
  overflow: auto;
  border: 1px solid rgba(61, 52, 40, 0.08);
}

.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px; /* enables horizontal scroll on small screens */
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}

.legal-table thead th {
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
  padding: 14px 14px;
  border-bottom: 1px solid rgba(61, 52, 40, 0.10);
}

.legal-table tbody td {
  vertical-align: top;
  padding: 14px 14px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-bottom: 1px solid rgba(61, 52, 40, 0.08);
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody td:nth-child(n+2) {
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- TERMS FOOTER (MATCH) ---------- */
.terms-footer {
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: 20px;
}

.terms-footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .terms-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

.terms-footer-icon {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(61, 52, 40, 0.1);
}

.terms-footer-icon svg {
  width: 32px;
  height: 32px;
  color: var(--orange);
}

.terms-footer-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.terms-footer-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.terms-footer-content a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.terms-footer-content a:hover {
    color: var(--white);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .page-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .terms-section {
    padding: 3rem 1.5rem 4rem;
  }

  .terms-meta {
    padding: 1.25rem 1.5rem;
  }

  .terms-intro {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .terms-heading {
    font-size: 1.35rem;
  }

  .terms-section-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .terms-footer {
    padding: 2rem 1.5rem;
    margin-top: 3rem;
  }
}

@media (max-width: 480px) {
  .terms-list li {
    padding-left: 1.5rem;
    font-size: 0.95rem;
  }

  .terms-section-block > p {
    font-size: 0.95rem;
  }
}

/* ---------- PRINT ---------- */
@media print {

  .header,
  .footer,
  .page-hero,
  .terms-footer {
    display: none;
  }

  .terms-section {
    padding: 0;
  }

  .terms-content {
    max-width: 100%;
  }

  .terms-heading {
    page-break-after: avoid;
  }

  .terms-section-block,
  .terms-list li,
  .legal-table-wrap {
    page-break-inside: avoid;
  }
}
