/* ══════════════════════════════════════════════════
   TERMS OF SERVICE PAGE — STANDALONE STYLESHEET
   Brand tokens mirror faq.css
   ══════════════════════════════════════════════════ */

/* ── FONT FACE ────────────────────────────── */
@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/CenturyGothic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/CenturyGothic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── RESET & BASE ──────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #FAFBFF;
  --surface: #FFFFFF;
  --navy: rgba(15, 26, 12, 1);
  --green: rgba(68, 214, 44, 1);
  --green-dark: #38b824;
  --dark-text: rgba(26, 31, 23, 1);
  --muted: rgba(107, 127, 101, 1);
  --border: #E2E8F4;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
  background: #fff;
  color: var(--navy);
  overflow-x: hidden;
  font-size: 17px;
  font-weight: 500;
}

/* NAV: fully styled by the shared custom-nav-v3.css (loaded after this
   file, same as VERISafe) — no nav rules here on purpose. */

/* ══════════════════════════════════════════════════
   POLICY HERO
   ══════════════════════════════════════════════════ */
.policy-hero {
  background: var(--green);
  padding: 80px 24px 64px;
  text-align: center;
  color: var(--navy);
  position: relative;
}

.policy-hero-inner {
  max-width: none;
  margin: 0 auto;
}

.policy-hero h1 {
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -3px;
  color: var(--navy);
  overflow: visible;
}

/* Search bar straddles the boundary between hero (green) and the section below (white). */
.policy-search-bar {
  max-width: 560px;
  margin: -28px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 11;
}

.policy-search {
  position: relative;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.policy-search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.policy-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  padding: 12px 12px;
  font-size: 14px;
  color: var(--navy);
}

.policy-search input::placeholder { color: var(--muted); }

/* Hide the browser's native (×) — replaced by .policy-search-clear */
.policy-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.policy-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-left: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(107, 124, 101, 1);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.policy-search-clear svg { width: 18px; height: 18px; }

.policy-search-clear[hidden] { display: none; }

.policy-search-clear:hover {
  background: rgba(107, 124, 101, 0.12);
  color: rgba(107, 124, 101, 1);
}

/* ══════════════════════════════════════════════════
   POLICY ACCORDION SECTIONS
   ══════════════════════════════════════════════════ */
.policy-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.policy-item.is-open {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.policy-summary {
  width: 100%;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  user-select: none;
  transition: color 0.2s;
}

.policy-summary:hover { color: var(--green-dark); }

.policy-toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: transform 0.25s ease, background 0.2s, color 0.2s, border-color 0.2s;
}

.policy-toggle svg {
  width: 14px;
  height: 14px;
  display: block;
}

.policy-item.is-open .policy-toggle {
  transform: rotate(-180deg);
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.policy-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.policy-body {
  min-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 700; /* matches faq.css .faq-answer — bold face, muted color */
  line-height: 1.7;
  color: var(--muted);
  transition: padding 0.3s ease;
}

.policy-item.is-open .policy-body-wrap {
  grid-template-rows: 1fr;
}

.policy-item.is-open .policy-body {
  padding: 0 20px 20px;
}

.policy-body p {
  margin: 0;
}

.policy-body p + p,
.policy-body p + ul,
.policy-body ul + p {
  margin-top: 12px;
}

.policy-body ul {
  margin: 12px 0 0 18px;
  padding: 0;
}

.policy-body li + li {
  margin-top: 6px;
}

.policy-body strong {
  color: var(--navy);
  font-weight: 700;
}

.policy-body a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
}

.policy-body a:hover {
  color: var(--navy);
}

/* ── COOKIES TABLE ─────────────────────────── */
.policy-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.policy-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.policy-table th {
  background: rgba(68, 214, 44, 0.12);
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}

.policy-table td {
  padding: 10px 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.policy-table td:first-child {
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

/* hide items that don't match search */
.policy-item.is-hidden { display: none; }

.policy-empty {
  text-align: center;
  padding: 64px 16px 72px;
}

.policy-empty-icon {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(68, 214, 44, 0.12);
  border: 1px solid rgba(68, 214, 44, 0.35);
  color: var(--green-dark);
}

.policy-empty-icon::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(68, 214, 44, 0.35);
}

.policy-empty-icon svg { width: 40px; height: 40px; }

.policy-empty-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 0 0 10px;
}

.policy-empty-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto;
  max-width: 380px;
}

/* ══════════════════════════════════════════════════
   SLOGAN CTA — copied verbatim from
   verisafe-v2-font-upsize.css .slogan-section so the
   banner matches VERISafe exactly
   ══════════════════════════════════════════════════ */
.slogan-section {
  background: rgba(68, 214, 44, 1);
  padding: 80px 40px;
  text-align: center;
}

.slogan-section h2:first-child {
  color: black;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 auto 16px;
}

.slogan-section h2:nth-child(2) {
  color: white;
  font-size: 22px;
  font-weight: 600 !important;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 12px auto 0;
  max-width: none;
  white-space: nowrap;
}

.slogan-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 36px;
}

.btn-slogan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-slogan-outline {
  color: #44d62c;
  background: #fff;
  border: 2px solid #fff;
}

.btn-slogan-outline:hover {
  background: #f0f0f0;
}

.btn-slogan-fill {
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
}

.btn-slogan-fill:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  /* Slogan CTA — mobile (matches verisafe-v2-font-upsize mobile block) */
  .slogan-section { padding: 60px 24px; }
  .slogan-section h2:first-child {
    font-size: clamp(24px, 6vw, 36px);
    letter-spacing: -0.5px;
  }
  .slogan-section h2:nth-child(2) {
    font-size: 16px;
    white-space: normal;
    max-width: 600px;
  }
  .slogan-ctas {
    flex-direction: column;
    align-items: center;
  }
  .btn-slogan {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .policy-hero h1 {
    font-size: clamp(28px, 8vw, 56px);
    letter-spacing: -1px;
  }
}

@media (max-width: 560px) {
  .policy-hero { padding: 56px 20px 72px; }
  .policy-main { padding: 48px 16px 64px; }
}

/* ══════════════════════════════════════════════════
   LARGE-SCREEN TYPOGRAPHY UPSCALE
   Mirrors verisafe-v2-font-upsize.css (VERISafe v3
   font-upsize scale) so type matches VERISafe across
   laptop / 1080p / 1440p / 4K screens. Nav + footer
   scale in custom-nav-v3.css / custom-footer-v2.css.
   ══════════════════════════════════════════════════ */

/* Laptops (961–1492px): tame the 128px hero like VERISafe does */
@media (min-width: 961px) and (max-width: 1492px) {
  .policy-hero h1 {
    font-size: clamp(64px, 6.2vw, 92px);
    line-height: 1.08;
  }
}

/* 1080p displays */
@media (min-width: 1920px) {
  body { font-size: 19px; }

  .policy-summary { font-size: 19px; }
  .policy-body { font-size: 19px; }
  .policy-table { font-size: 16.5px; }
  .policy-search input { font-size: 16px; }
  .policy-empty-text { font-size: 17px; }

  .slogan-section h2:first-child { font-size: 64px; }
  .slogan-section h2:nth-child(2) { font-size: 26px; }
  .btn-slogan { font-size: clamp(18px, calc(6px + 0.625vw), 22px); }
}

/* 1440p / 2K displays */
@media (min-width: 2560px) {
  body { font-size: 21px; }

  .policy-summary { font-size: 21px; }
  .policy-body { font-size: 21px; }
  .policy-table { font-size: 18px; }
  .policy-search input { font-size: 18px; }
  .policy-empty-text { font-size: 19px; }

  .slogan-section h2:first-child { font-size: 78px; }
  .slogan-section h2:nth-child(2) { font-size: 32px; }
  .btn-slogan { font-size: clamp(22px, calc(10px + 0.469vw), 28px); }
}

/* 4K displays */
@media (min-width: 3840px) {
  body { font-size: 24px; }

  .policy-summary { font-size: 24px; }
  .policy-body { font-size: 24px; }
  .policy-table { font-size: 20px; }
  .policy-search input { font-size: 20px; }
  .policy-empty-text { font-size: 22px; }

  .slogan-section h2:first-child { font-size: 112px; }
  .slogan-section h2:nth-child(2) { font-size: 42px; }
  .btn-slogan { font-size: 28px; }
}
