/* Legal pages (Terms, Privacy, Cookie): title band, sticky contents, numbered sections. Flat style to match the site. */
:root {
  --lg-ink: #111;
  --lg-text: #444;
  --lg-muted: #6b7280;
  --lg-outline: #5f6368;
  --lg-line: #cfd6dd;
  --lg-panel: #edf1f5;
  --lg-accent: #eb7024;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--lg-text);
  background: #fff;
}

/* Keep the logo and "Back to home" on one line on phones */
.lp-navbar .container {
  flex-wrap: nowrap;
  gap: 12px;
}

  .lp-navbar .navbar-logo {
    max-width: 60vw;
    height: auto !important;
    max-height: 28px;
  }

/* Title band */
.lg-hero {
  padding: 64px 0 48px;
  background: var(--lg-panel);
  border-bottom: 1px solid var(--lg-line);
}

.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-accent);
}

.lg-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lg-ink);
}

.lg-hero .lg-intro {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--lg-text);
}

.lg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lg-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--lg-outline);
  background: #fff;
  font-size: 0.82rem;
  color: var(--lg-ink);
}

button.lg-chip {
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

  button.lg-chip:hover {
    background: var(--lg-ink);
    color: #fff;
  }

/* Layout */
.lg-body {
  padding: 56px 0 72px;
}

/* Table of contents */
.lg-toc {
  position: sticky;
  top: 104px;
  padding: 20px 0;
}

.lg-toc-title {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-muted);
}

.lg-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--lg-line);
}

.lg-toc a {
  display: flex;
  gap: 10px;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  font-size: 0.88rem;
  color: var(--lg-text);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

  .lg-toc a span {
    min-width: 18px;
    color: var(--lg-muted);
  }

  .lg-toc a:hover {
    color: var(--lg-ink);
  }

  .lg-toc a.active {
    border-left-color: var(--lg-accent);
    color: var(--lg-ink);
    font-weight: 600;
  }

    .lg-toc a.active span {
      color: var(--lg-accent);
    }

/* Mobile contents */
.lg-toc-mobile {
  margin-bottom: 32px;
  border: 1px solid var(--lg-outline);
}

  .lg-toc-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--lg-ink);
    cursor: pointer;
    list-style: none;
  }

    .lg-toc-mobile summary::-webkit-details-marker {
      display: none;
    }

    .lg-toc-mobile summary i {
      transition: transform 0.2s ease;
    }

  .lg-toc-mobile[open] summary i {
    transform: rotate(180deg);
  }

  .lg-toc-mobile ol {
    margin: 0;
    padding: 4px 16px 14px 36px;
  }

    .lg-toc-mobile ol a {
      display: block;
      padding: 5px 0;
      color: var(--lg-text);
      text-decoration: none;
    }

/* Sections */
.lg-section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--lg-line);
  scroll-margin-top: 96px;
}

  .lg-section:first-of-type {
    padding-top: 0;
  }

.lg-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--lg-outline);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--lg-ink);
}

.lg-section:target .lg-num,
.lg-section.is-current .lg-num {
  border-color: var(--lg-accent);
  background: var(--lg-accent);
  color: #fff;
}

.lg-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lg-ink);
}

.lg-anchor {
  font-size: 0.8rem;
  color: var(--lg-muted);
  opacity: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.lg-section:hover .lg-anchor,
.lg-anchor:focus {
  opacity: 1;
}

.lg-section p {
  max-width: 68ch;
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--lg-text);
}

/* Contact + related */
.lg-help {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}

.lg-help-card {
  padding: 24px;
  border: 1px solid var(--lg-outline);
  background: #fff;
}

  .lg-help-card.is-panel {
    background: var(--lg-panel);
  }

  .lg-help-card h3 {
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lg-ink);
  }

  .lg-help-card p {
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--lg-text);
  }

.lg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--lg-outline);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lg-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

  .lg-link:hover {
    background: var(--lg-ink);
    border-color: var(--lg-ink);
    color: #fff;
  }

  .lg-link.is-primary {
    background: var(--lg-accent);
    border-color: var(--lg-accent);
    color: #fff;
  }

    .lg-link.is-primary:hover {
      background: #fff;
      color: var(--lg-accent);
    }

@media (min-width: 768px) {
  .lg-help {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .lg-hero {
    padding: 44px 0 36px;
  }

  .lg-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lg-num {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
}

/* Back to top */
.lg-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--lg-accent);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

  .lg-top.show {
    opacity: 1;
    pointer-events: auto;
  }

/* Print: just the terms */
@media print {
  .lp-navbar,
  .lg-toc,
  .lg-toc-mobile,
  .lg-meta,
  .lg-help,
  .lg-top,
  .lp-footer,
  .lg-anchor {
    display: none !important;
  }

  .lg-hero {
    padding: 0 0 16px;
    background: none;
  }

  .lg-body {
    padding-top: 16px;
  }

  .lg-section {
    break-inside: avoid;
  }

  .lg-body .col-lg-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Links inside the policy text */
.lg-section p a {
  color: var(--lg-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lg-accent);
  text-underline-offset: 3px;
}

  .lg-section p a:hover {
    color: var(--lg-accent);
  }

/* Cookie cards (Cookie Policy) */
.lg-cookies {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.lg-cookie {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid var(--lg-outline);
  background: var(--lg-panel);
}

.lg-cookie-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

  .lg-cookie-head code {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--lg-ink);
  }

.lg-tag {
  padding: 3px 10px;
  border: 1px solid var(--lg-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lg-accent);
}

.lg-section .lg-cookie p {
  flex-grow: 1;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.lg-cookie-life {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--lg-line);
  font-size: 0.84rem;
  color: var(--lg-ink);
}

  .lg-cookie-life i {
    margin-top: 3px;
    color: var(--lg-muted);
  }

@media (min-width: 768px) {
  .lg-cookies {
    grid-template-columns: 1fr 1fr;
  }
}

@media print {
  .lg-cookie {
    break-inside: avoid;
    background: none;
  }
}
