/* Legal pages (Terms, Privacy). Values from live-site computed styles
   (winningads.com/legal/terms, /legal/privacy) — a different type system
   (Satoshi throughout, near-black/mid-grey palette) than the marketing
   sections, which is why the values below don't reuse the home tokens. */

.s-legal {
  background: linear-gradient(180deg, #faf7f5 0%, #fff 100%);
}

/* ---------- Title / intro ---------- */

.legal-hero {
  padding: 230px 0 0;
  text-align: center;
}

.legal-hero h1 {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #120a0b;
}

.legal-sub {
  margin: 24px 0 0;
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.7;
  color: #120a0b;
}

/* ---------- Body content ---------- */

.legal-content {
  padding: 156px 0 96px;
}

.s-legal .container {
  max-width: 923px;
}

.legal-body {
  max-width: 775px;
  margin: 0 auto;
  text-align: left;
}

.legal-meta {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

.legal-body p {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

.legal-body strong {
  font-weight: 700;
  color: inherit;
}

.legal-body a {
  color: #0099ff;
  text-decoration: underline;
}

.legal-body a:hover {
  color: #120a0b;
}

.legal-body h2 {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: #000;
  margin: 0;
}

.legal-body ul {
  margin: 0;
  padding-left: 22px;
}

.legal-body li {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

.legal-body li::marker {
  color: #666;
}

/* ---------- FAQ ---------- */

.legal-faq {
  padding: 96px 0 128px;
}

.legal-faq .container {
  max-width: 1160px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.faq-intro h2 {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #120a0b;
  max-width: 415px;
  margin: 0 0 24px;
}

.faq-intro p {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: #666;
  max-width: 420px;
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item.open {
  border: 1px solid rgba(18, 10, 11, 0.2);
  border-radius: 20px;
  background: #fff;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: #120a0b;
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 6px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #120a0b;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 2px;
  height: 16px;
}

.faq-icon::after {
  width: 16px;
  height: 2px;
}

.faq-item.open .faq-icon::before {
  display: none;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-a-panel {
  overflow: hidden;
}

.faq-a-panel p {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: #666;
  margin: 0;
  padding: 4px 24px 26px;
}

/* ---------- Footer (dark, expanded) ---------- */

.legal-footer {
  background: #120a0b;
  padding: 64px 0 40px;
}

.legal-footer .container {
  max-width: 1180px;
}

.lf-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(248, 244, 241, 0.1);
}

.lf-brand .logo {
  display: inline-block;
  margin-bottom: 20px;
}

.lf-brand .logo img {
  width: 185px;
  height: 24px;
}

.lf-brand p {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(248, 244, 241, 0.7);
  max-width: 320px;
  margin: 0;
}

.lf-col h5,
.lf-cta h5 {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: #f8f4f1;
  margin: 0 0 20px;
}

.lf-col a {
  display: block;
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 16px;
  color: rgba(248, 244, 241, 0.6);
  margin-bottom: 16px;
  transition: color 0.2s;
}

.lf-col a:last-child {
  margin-bottom: 0;
}

.lf-col a:hover {
  color: #f8f4f1;
}

.lf-cta .btn {
  margin-top: 4px;
}

.lf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
}

.lf-bottom p {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 14px;
  color: rgba(248, 244, 241, 0.5);
  margin: 0;
}

.lf-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lf-social a {
  display: flex;
  width: 22px;
  height: 22px;
}

.lf-social svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .legal-hero {
    padding-top: 244px;
  }

  .legal-content {
    padding-top: 88px;
  }

  .s-legal .container {
    max-width: 768px;
  }

  .legal-body {
    max-width: 653px;
  }

  .faq-intro h2 {
    font-size: 44px;
    max-width: 320px;
  }

  .faq-grid {
    gap: 40px;
  }

  .lf-top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 809px) {
  .legal-hero {
    padding-top: 110px;
  }

  .legal-hero h1 {
    font-size: 36px;
  }

  .legal-content {
    padding: 94px 0 64px;
  }

  .s-legal .container {
    max-width: 1120px;
  }

  .legal-body {
    max-width: none;
  }

  .legal-faq {
    padding: 64px 0 80px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-intro h2 {
    font-size: 36px;
    max-width: none;
  }

  .faq-intro p {
    max-width: none;
  }

  .legal-footer {
    padding: 48px 0 32px;
  }

  .lf-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
    padding-bottom: 32px;
  }

  .lf-brand {
    grid-column: 1 / -1;
    order: 0;
  }

  .lf-col-company {
    order: 1;
  }

  .lf-col-quick {
    order: 2;
  }

  .lf-cta {
    grid-column: 1 / -1;
    order: 3;
  }

  .lf-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding-top: 24px;
  }
}
