/* ==========================================================================
   Bali Aktivitas Wisata — Pusat Kebijakan Privasi
   Stylesheet utama. Tidak memakai font atau aset eksternal.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #fbf8f1;
  --bg-soft: #f4edde;
  --surface: #ffffff;
  --surface-2: #f8f3e8;
  --text: #15302d;
  --text-soft: #3d5551;
  --muted: #667d78;
  --brand: #0f5f58;
  --brand-strong: #0a443f;
  --brand-soft: #d9eee9;
  --accent: #c98616;
  --accent-strong: #a86c08;
  --accent-soft: #f8e7c4;
  --border: rgba(15, 95, 88, 0.15);
  --border-strong: rgba(15, 95, 88, 0.28);
  --shadow-sm: 0 1px 2px rgba(8, 45, 42, 0.06);
  --shadow-md: 0 18px 40px -28px rgba(8, 45, 42, 0.45);
  --shadow-lg: 0 34px 80px -46px rgba(8, 45, 42, 0.55);
  --ring: 0 0 0 3px rgba(15, 95, 88, 0.25);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --header-h: 76px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Noto Serif", serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #081614;
  --bg-soft: #0c1f1c;
  --surface: #102623;
  --surface-2: #16302c;
  --text: #eaf4f1;
  --text-soft: #c8dad6;
  --muted: #97aea9;
  --brand: #7ad7c9;
  --brand-strong: #a6eadf;
  --brand-soft: #143a35;
  --accent: #f0b64b;
  --accent-strong: #ffd27d;
  --accent-soft: #3a2c12;
  --border: rgba(122, 215, 201, 0.18);
  --border-strong: rgba(122, 215, 201, 0.34);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 40px -26px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 34px 80px -40px rgba(0, 0, 0, 0.9);
  --ring: 0 0 0 3px rgba(122, 215, 201, 0.3);
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.65rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 750;
}

h3 {
  font-size: 1.16rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-strong);
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__text strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.nav a:not(.btn) {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:not(.btn):hover {
  background: var(--surface-2);
  color: var(--brand);
}

.nav a[aria-current="page"]:not(.btn) {
  color: var(--brand);
  background: var(--brand-soft);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.35rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--brand);
  border-color: var(--border-strong);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
}

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px -16px rgba(8, 45, 42, 0.7);
}

[data-theme="dark"] .btn--primary {
  background: var(--brand);
  color: #06211e;
}

.btn--primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

[data-theme="dark"] .btn--primary:hover {
  background: var(--brand-strong);
  color: #06211e;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--brand);
}

.btn--accent {
  background: var(--accent);
  color: #231703;
}

.btn--accent:hover {
  background: var(--accent-strong);
  color: #231703;
}

.btn--small {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
}

.btn--block {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pill--live {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand-strong);
}

.pill--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  width: 44rem;
  height: 44rem;
  top: -26rem;
  right: -14rem;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand) 20%, transparent) 0%,
    transparent 68%
  );
}

.hero::after {
  width: 34rem;
  height: 34rem;
  bottom: -22rem;
  left: -12rem;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 18%, transparent) 0%,
    transparent 70%
  );
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero__title {
  margin-bottom: 1.1rem;
}

.hero__title span {
  color: var(--brand);
}

.hero__lede {
  max-width: 34rem;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.8rem 0 1.5rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.6rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__meta svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
}

/* Decorative policy card */
.hero__visual {
  position: relative;
  padding: 1.4rem;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 0 8%;
  background: linear-gradient(140deg, var(--brand), var(--brand-strong));
  border-radius: calc(var(--radius-lg) + 8px);
  transform: rotate(-3deg);
  opacity: 0.14;
}

.mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.mock__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock__bar i:first-child {
  background: var(--accent);
}

.mock__bar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mock__body {
  padding: 1.5rem 1.5rem 1.35rem;
}

.mock__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px dashed var(--border);
}

.mock__head img {
  width: 56px;
  height: 56px;
  border-radius: 15px;
}

.mock__head strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.mock__head small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.mock__list {
  display: grid;
  gap: 0.7rem;
  margin: 1.15rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.mock__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.mock__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.08rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 50%;
}

.mock__check svg {
  width: 12px;
  height: 12px;
}

.mock__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
}

.mock__foot b {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  font-weight: 700;
}

.mock__foot b::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 42rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__lede {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.section__title {
  margin-bottom: 0.55rem;
}

/* ---------- App cards ---------- */
.apps-grid {
  display: grid;
  gap: 1.25rem;
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 1.9rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.app-card::after {
  content: "";
  position: absolute;
  inset: auto -5rem -7rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand) 12%, transparent),
    transparent 68%
  );
  pointer-events: none;
}

.app-card__icon {
  width: clamp(64px, 9vw, 88px);
  height: clamp(64px, 9vw, 88px);
  border-radius: 22%;
  box-shadow: var(--shadow-md);
}

.app-card__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.app-card h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}

.app-card p {
  max-width: 46rem;
  margin-bottom: 1rem;
  color: var(--text-soft);
}

.app-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.35rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.84rem;
}

.app-card__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.app-card__facts svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.app-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.app-card__note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 13px;
}

.feature__icon svg {
  width: 23px;
  height: 23px;
}

.feature h3 {
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.65rem;
  max-width: 50rem;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq__item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  content: "\2013";
  transform: rotate(180deg);
}

.faq__body {
  padding: 0 1.25rem 1.2rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

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

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  background: linear-gradient(145deg, var(--brand-strong), var(--brand));
  color: #f7fbfa;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact h2,
.contact h3 {
  color: #fff;
}

.contact p {
  color: rgba(247, 251, 250, 0.82);
}

.contact .eyebrow {
  color: #9ee8dc;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.contact .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.contact .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.contact__panel {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.contact__panel h3 {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ee8dc;
}

.contact__list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.92rem;
}

.contact__list svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 0.15rem;
  color: #9ee8dc;
}

.contact__list a {
  color: #fff;
  font-weight: 650;
}

.contact__list small {
  display: block;
  color: rgba(247, 251, 250, 0.62);
  font-size: 0.78rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding: 2.8rem 0 1.6rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 2rem;
}

.footer__brand p {
  max-width: 26rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__col h2 {
  margin-bottom: 0.8rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__col a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 2.3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer__bottom p {
  margin: 0;
}

/* ---------- Policy page ---------- */
.policy-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.2rem, 5vw, 3rem);
  background:
    radial-gradient(
      60rem 26rem at 85% -30%,
      color-mix(in srgb, var(--brand) 16%, transparent),
      transparent 70%
    ),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  margin-bottom: 1.6rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--border-strong);
}

.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.policy-hero__grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.policy-hero h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.policy-hero h1 span {
  color: var(--brand);
}

.lede {
  max-width: 46rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.lang-switch {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.lang-switch a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--brand);
  color: #fff;
}

[data-theme="dark"] .lang-switch a[aria-current="true"] {
  color: #06211e;
}

.policy-layout {
  display: grid;
  grid-template-columns: 16.5rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow: auto;
  padding: 1.2rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.toc__title {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  margin: 0;
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 0.5rem;
  padding: 0.34rem 0.45rem;
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.08rem;
}

.toc a:hover {
  background: var(--surface-2);
  color: var(--brand);
}

.toc a.is-active {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

.toc a.is-active::before {
  color: var(--brand-strong);
}

.toc__actions {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.toc__actions .btn {
  min-height: 40px;
  font-size: 0.8rem;
}

.policy {
  max-width: 48rem;
  min-width: 0;
}

.policy section {
  padding-bottom: 1.2rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.policy h2 {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.policy section:first-of-type h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.policy h2 span {
  color: var(--accent);
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
}

.policy h3 {
  margin-top: 1.6rem;
}

.policy p,
.policy li {
  color: var(--text-soft);
}

.policy strong {
  color: var(--text);
}

.policy ul,
.policy ol {
  padding-left: 1.15rem;
}

.policy li::marker {
  color: var(--brand);
}

.policy a {
  font-weight: 600;
}

.callout {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.35rem 1.5rem;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: var(--radius);
}

.callout__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.callout__title svg {
  width: 18px;
  height: 18px;
}

.callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
}

.callout ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.callout li {
  color: var(--text);
}

.callout li:last-child {
  margin-bottom: 0;
}

.note {
  padding: 0.9rem 1.1rem;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
}

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

/* Tables */
.table-wrap {
  margin: 1.2rem 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.87rem;
  background: var(--surface);
}

caption {
  padding: 0.7rem 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th,
td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--text-soft);
}

/* Contact block inside policy */
.policy-contact {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.policy-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.policy-contact__row svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  color: var(--brand);
}

.policy-contact__row strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.policy-contact__row a {
  overflow-wrap: anywhere;
}

.policy-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 19px;
  height: 19px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    width: min(100%, 31rem);
    margin-inline: auto;
  }

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

  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .policy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .toc {
    position: static;
    max-height: none;
    order: -1;
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 0.8rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    margin: 0;
    padding: 0.9rem clamp(1.15rem, 4vw, 2rem) 1.1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 0.72rem 0.8rem;
    font-size: 1rem;
  }

  .nav .btn {
    margin-top: 0.45rem;
  }

  .header__actions {
    margin-left: auto;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .policy-hero__grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand__text small {
    display: none;
  }

  .app-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-card__icon {
    width: 64px;
    height: 64px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    display: none;
  }

  .policy-contact {
    padding: 1.1rem;
  }

  .table-wrap {
    margin-inline: -0.25rem;
  }
}

@media (max-width: 420px) {
  .hero__actions .btn,
  .app-card__actions .btn,
  .contact__actions .btn {
    width: 100%;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-switch a {
    flex: 1;
    text-align: center;
  }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --text: #000;
    --text-soft: #1a1a1a;
    --muted: #444;
    --border: #ccc;
    --brand: #06403b;
  }

  .site-header,
  .site-footer,
  .toc,
  .back-to-top,
  .lang-switch,
  .policy-footer-nav,
  .skip-link,
  .hero__visual {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .policy-hero {
    padding: 0 0 1rem;
    background: none;
    border-bottom: 1px solid #999;
  }

  .policy-layout {
    display: block;
    padding-top: 1rem;
  }

  .policy {
    max-width: none;
  }

  .policy a {
    color: #000;
    text-decoration: underline;
  }

  .callout {
    background: #f4f4f4;
    border: 1px solid #bbb;
  }

  .policy section {
    break-inside: avoid-page;
  }

  .policy h2 {
    break-after: avoid-page;
  }

  .table-wrap {
    overflow: visible;
    border: 1px solid #999;
  }

  table {
    min-width: 0;
  }
}
