/**
 * Terms of Service page — body sections only (nav + footer from the theme).
 * Scoped under .tos-page; uses the theme design tokens.
 * @package Altojive
 */

.tos-page { color: var(--text-primary); }

/* ── HERO ── */
.tos-page .ts-hero {
  background: var(--navy);
  padding: 64px 40px 72px;
  position: relative;
  overflow: hidden;
}
.tos-page .ts-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.tos-page .ts-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
}
.tos-page .ts-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.tos-page .ts-hero__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.tos-page .ts-hero__sub { font-size: 0.9375rem; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 440px; }
.tos-page .ts-hero__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.tos-page .ts-meta-item { font-size: 0.8125rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 8px; }
.tos-page .ts-meta-item strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.tos-page .ts-meta-item svg { width: 14px; height: 14px; color: var(--yellow); flex-shrink: 0; }

/* ── LAYOUT ── */
.tos-page .ts-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── SIDEBAR ── */
.tos-page .ts-sidebar { position: sticky; top: 90px; }
.tos-page .ts-sidebar__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 12px;
}
.tos-page .ts-sidebar__nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; }
.tos-page .ts-sidebar__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.tos-page .ts-sidebar__link:hover { background: var(--grey-50); color: var(--navy); }
.tos-page .ts-sidebar__link.is-active {
  background: var(--grey-50);
  color: var(--navy);
  border-left-color: var(--yellow);
  font-weight: 700;
}
.tos-page .ts-sidebar__actions { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.tos-page .ts-sidebar__action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--grey-50);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.tos-page .ts-sidebar__action:hover { border-color: var(--navy); }
.tos-page .ts-sidebar__action svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Mobile select */
.tos-page .ts-mobile-select {
  display: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  background: var(--grey-50);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239499b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
  outline: none;
  margin-bottom: 32px;
}

/* ── CONTENT ── */
.tos-page .ts-content { min-width: 0; }

.tos-page .ts-notice {
  background: rgba(245,197,24,0.1);
  border: 1.5px solid rgba(245,197,24,0.4);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}
.tos-page .ts-notice svg { width: 18px; height: 18px; color: #a07c00; flex-shrink: 0; margin-top: 1px; }
.tos-page .ts-notice p { font-size: 0.875rem; color: #5a4800; line-height: 1.6; }
.tos-page .ts-notice strong { font-weight: 700; }

.tos-page .ts-section { margin-bottom: 56px; scroll-margin-top: 90px; }
.tos-page .ts-section:last-of-type { margin-bottom: 0; }
.tos-page .ts-section__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--navy);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.tos-page .ts-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.tos-page .ts-section p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.tos-page .ts-section p:last-child { margin-bottom: 0; }
.tos-page .ts-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin: 24px 0 10px;
}
.tos-page .ts-section ul,
.tos-page .ts-section ol { padding-left: 20px; margin-bottom: 16px; }
.tos-page .ts-section li { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 6px; }
.tos-page .ts-section a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.tos-page .ts-highlight {
  background: var(--grey-50);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.tos-page .ts-highlight p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }

/* ── CTA BANNER ── */
.tos-page .ts-cta { background: var(--grey-50); border-top: 1px solid var(--border); padding: 64px 40px; text-align: center; }
.tos-page .ts-cta__title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--navy); margin-bottom: 10px; }
.tos-page .ts-cta__sub { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 28px; }
.tos-page .ts-cta__buttons { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tos-page .ts-btn-dark,
.tos-page .ts-btn-outline {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.tos-page .ts-btn-dark { background: var(--navy); color: #fff; padding: 12px 28px; }
.tos-page .ts-btn-dark:hover { opacity: 0.85; }
.tos-page .ts-btn-outline { background: transparent; color: var(--navy); padding: 11px 28px; border: 2px solid var(--navy); }
.tos-page .ts-btn-outline:hover { background: var(--navy); color: #fff; }

/* ══ Tablet (≤ 900px) ══ */
@media (max-width: 900px) {
  .tos-page .ts-hero { padding: 48px 24px 56px; }
  .tos-page .ts-hero__title { font-size: 1.875rem; }
  .tos-page .ts-hero__meta { align-items: flex-start; margin-top: 16px; }
  .tos-page .ts-wrap { grid-template-columns: 1fr; padding: 48px 24px; gap: 0; }
  .tos-page .ts-sidebar { display: none; }
  .tos-page .ts-mobile-select { display: block; }
  .tos-page .ts-cta { padding: 48px 24px; }
}

/* ══ Mobile (≤ 600px) ══ */
@media (max-width: 600px) {
  .tos-page .ts-hero { padding: 40px 20px 48px; }
  .tos-page .ts-hero__title { font-size: 1.5rem; }
  .tos-page .ts-hero__inner { flex-direction: column; gap: 20px; align-items: flex-start; }
  .tos-page .ts-hero__meta { align-items: flex-start; }
  .tos-page .ts-wrap { padding: 36px 20px; }
  .tos-page .ts-section__title { font-size: 1.125rem; }
  .tos-page .ts-cta { padding: 40px 20px; }
  .tos-page .ts-cta__buttons { flex-direction: column; }
  .tos-page .ts-btn-dark,
  .tos-page .ts-btn-outline { display: block; text-align: center; }
}

/* ══ Print: clean legal document ══ */
@media print {
  .site-header, .site-footer, .tos-page .ts-hero__meta,
  .tos-page .ts-sidebar, .tos-page .ts-mobile-select, .tos-page .ts-cta { display: none !important; }
  .tos-page .ts-wrap { display: block; padding: 0; }
  .tos-page .ts-hero { background: none; color: #000; padding: 0 0 16px; }
  .tos-page .ts-hero__title, .tos-page .ts-eyebrow { color: #000; }
  .tos-page .ts-section { page-break-inside: avoid; }
}
