/* Terms Page */

.terms-page {
  min-height: calc(100vh - 4rem);
  padding: 8rem 1.5rem 6rem;

  background: #f3f4f6;
  color: #020617;
}

.terms-page__container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* Header */

.terms-page__header {
  max-width: 840px;
  margin-bottom: 3rem;
}

.terms-page__eyebrow {
  display: block;
  margin-bottom: 0.65rem;

  color: var(--color-accent, #ff0098);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-page__header h1 {
  margin: 0 0 1rem;

  color: #020617;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.terms-page__lead {
  max-width: 760px;
  margin: 0;

  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Layout */

.terms-page__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Navigation */

.terms-navigation {
  position: sticky;
  top: 7rem;

  max-height: calc(100vh - 9rem);
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 0.2rem;

  overflow-y: auto;

  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.terms-navigation__title {
  margin-bottom: 0.75rem;

  color: #020617;
  font-size: 0.95rem;
  font-weight: 700;
}

.terms-navigation a {
  padding: 0.55rem 0.65rem;

  border-radius: 6px;

  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.35;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.terms-navigation a:hover {
  background: #fdf2f8;
  color: var(--color-accent, #ff0098);
}

/* Content */

.terms-content {
  min-width: 0;
  padding: 3rem;

  background: #ffffff;
  border-radius: 8px;

  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.12);
}

.terms-section {
  scroll-margin-top: 7rem;
}

.terms-section + .terms-section {
  margin-top: 3rem;
  padding-top: 3rem;

  border-top: 1px solid #e5e7eb;
}

.terms-section__number {
  display: block;
  margin-bottom: 0.35rem;

  color: var(--color-accent, #ff0098);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.terms-section h2 {
  margin: 0 0 1.25rem;

  color: #020617;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.terms-section h3 {
  margin: 0 0 0.5rem;

  color: #020617;
  font-size: 1rem;
  font-weight: 700;
}

.terms-section p,
.terms-section address,
.terms-section li {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.75;
}

.terms-section p {
  margin: 0 0 1rem;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-section address {
  font-style: normal;
}

.terms-section strong {
  color: #020617;
  font-weight: 700;
}

.terms-section a {
  color: var(--color-accent, #ff0098);
  font-weight: 600;
  text-decoration: none;
}

.terms-section a:hover {
  text-decoration: underline;
}

/* Contact */

.terms-contact-card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;

  border-left: 3px solid var(--color-accent, #ff0098);
  border-radius: 0 8px 8px 0;

  background: #f9fafb;
}

/* Notice */

.terms-notice {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;

  border: 1px solid #e5e7eb;
  border-radius: 8px;

  background: #f9fafb;
}

.terms-notice p {
  margin: 0;
}

.terms-notice--warning {
  border-color: #fbcfe8;
  background: #fdf2f8;
}

.terms-notice--warning h3 {
  color: #9d174d;
}

/* Date */

.terms-page__updated {
  margin-top: 1.5rem !important;

  color: #64748b !important;
  font-size: 0.875rem !important;
  font-weight: 600;
}

/* Tablet */

@media (max-width: 960px) {
  .terms-page__layout {
    grid-template-columns: 1fr;
  }

  .terms-navigation {
    position: static;
    max-height: none;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-navigation__title {
    grid-column: 1 / -1;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .terms-page {
    padding: 6rem 1rem 3rem;
  }

  .terms-page__header {
    margin-bottom: 2rem;
  }

  .terms-page__header h1 {
    font-size: 2.15rem;
  }

  .terms-navigation {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .terms-content {
    padding: 2rem 1.25rem;
  }

  .terms-section + .terms-section {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
  }

  .terms-section h2 {
    font-size: 1.3rem;
  }

  .terms-contact-card,
  .terms-notice {
    padding: 1rem;
  }
}