/* =========================================================
   APP INTELLIGENCE — TRUST CENTER INNER PAGES
   Matches the main App Intelligence visual system
   ========================================================= */

:root {
  --accent: #2f6f73;
  --accent-deep: #163f42;
  --accent-soft: #d8eeee;
  --bg-color: #efe7dc;
  --border: rgba(29, 36, 48, 0.12);
  --font-display: "Cormorant Garamond", serif;
  --font-main: "Inter", sans-serif;
  --muted-text: #667085;
  --surface: #ffffff;
  --surface-soft: #f1ece4;
  --text-color: #1d2430;
  --warm: #c8955d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-color);
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top, rgba(200, 149, 93, 0.12), transparent 30%),
    radial-gradient(circle at 50% 8%, rgba(47, 111, 115, 0.08), transparent 36%),
    var(--bg-color);
}

.policy-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* =========================================================
   HERO
   ========================================================= */

.policy-hero {
  position: relative;
  overflow: hidden;
  padding: 12rem 1.5rem 5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(200, 149, 93, 0.16), transparent 34%),
    radial-gradient(circle at 50% 18%, rgba(47, 111, 115, 0.10), transparent 42%),
    var(--bg-color);
  border-bottom: 1px solid var(--border);
}

.policy-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(29, 36, 48, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 48, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.policy-hero .policy-shell {
  position: relative;
  z-index: 1;
}

.policy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
  color: var(--muted-text);
  font-size: 0.82rem;
}

.policy-breadcrumb a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.policy-breadcrumb a:hover {
  text-decoration: underline;
}

.policy-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.7rem;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  
}

.policy-hero-brand img {
  margin-top: 4rem;
  width: 15rem;
  height: 15rem;
  object-fit: contain;
  padding: 0.7rem;
  background: #f8f4ee;
  border: 1px solid rgba(22, 63, 66, 0.08);
  border-radius: 22px;
  box-shadow:
    0 12px 30px rgba(29, 36, 48, 0.08),
    0 2px 8px rgba(29, 36, 48, 0.04);
}

.policy-eyebrow,
.policy-kicker {
  margin: 0 0 0.8rem;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-color);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.policy-intro {
  max-width: 760px;
  margin: 1.4rem auto 0;
  color: var(--muted-text);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.8rem;
}

.policy-meta span {
  padding: 0.5rem 0.75rem;
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.policy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(4rem, 7vw, 6rem);
}

.policy-sidebar {
  position: sticky;
  top: 7rem;
}

.policy-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.policy-back:hover {
  text-decoration: underline;
}

.policy-sidebar nav {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(29, 36, 48, 0.07);
  backdrop-filter: blur(12px);
}

.policy-sidebar nav a {
  padding: 0.72rem 0.8rem;
  color: var(--muted-text);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 12px;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.policy-sidebar nav a:hover {
  color: var(--accent-deep);
  background: rgba(47, 111, 115, 0.08);
  transform: translateX(2px);
}

.policy-sidebar nav a.is-active {
  color: #ffffff;
  background: var(--accent-deep);
  box-shadow: 0 8px 20px rgba(22, 63, 66, 0.14);
}

/* =========================================================
   DOCUMENT
   ========================================================= */

.policy-document {
  min-width: 0;
}

.policy-notice {
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 111, 115, 0.14);
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(29, 36, 48, 0.06);
}

.policy-notice strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-deep);
}

.policy-notice p {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.7;
}

.policy-section {
  margin-bottom: 1.25rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(29, 36, 48, 0.06);
  scroll-margin-top: 7rem;
}

.policy-section h2,
.policy-contact h2 {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.policy-section p,
.policy-contact p,
.policy-legal-note {
  max-width: 820px;
  color: var(--muted-text);
  font-size: 0.98rem;
  line-height: 1.82;
}

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

.policy-section a,
.policy-contact a:not(.policy-button) {
  color: var(--accent-deep);
  font-weight: 700;
}

.policy-contact {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at top right, rgba(200, 149, 93, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(29, 36, 48, 0.08);
}

.policy-contact p {
  margin-bottom: 1rem;
}

.policy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  background: var(--accent-deep);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(22, 63, 66, 0.14);
  transition:
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.policy-button:hover {
  background: var(--text-color);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(29, 36, 48, 0.14);
}

.policy-legal-note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.policy-footer {
  margin-top: 5rem;
  padding: 4rem 2rem 2rem;
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid var(--border);
}

.policy-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
}

.policy-footer strong {
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.policy-footer p {
  color: var(--muted-text);
}

.policy-footer nav {
  display: grid;
  gap: 0.7rem;
}

.policy-footer a {
  color: var(--muted-text);
  font-size: 0.92rem;
  text-decoration: none;
}

.policy-footer a:hover {
  color: var(--accent-deep);
}

.policy-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(29, 36, 48, 0.08);
}

.policy-footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .policy-hero {
    padding-top: 8.5rem;
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-sidebar {
    position: static;
  }

  .policy-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .policy-shell {
    width: min(100% - 1.25rem, 1120px);
  }

  .policy-hero {
    padding: 7.5rem 1rem 4rem;
  }

  .policy-sidebar nav,
  .policy-footer-inner {
    grid-template-columns: 1fr;
  }

  .policy-section {
    padding: 1.2rem;
  }

  .policy-meta {
    gap: 0.45rem;
  }
}
