/* ============================================================
   M/S CAR RENT — Privacy Policy page
   Depends on css/styles.css for tokens and shared components.
   ============================================================ */

.policy-page { padding-top: var(--header-h); }

/* ---------------- Policy hero ---------------- */
.policy-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.policy-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(90%) contrast(115%);
}

.policy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 6, 14, 0.86), rgba(3, 6, 14, 0.94)),
    radial-gradient(760px 380px at 18% 10%, rgba(34, 230, 255, 0.2), transparent 68%),
    radial-gradient(600px 320px at 88% 90%, rgba(124, 107, 255, 0.2), transparent 70%);
}

.policy-hero .container { position: relative; z-index: 2; }

.policy-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.policy-hero h1 .accent {
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.policy-hero p {
  color: var(--ink-dim);
  max-width: 66ch;
  margin-top: 20px;
  font-size: 1.02rem;
}

.policy-stamps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.stamp b { color: var(--cyan); font-weight: 600; }

.stamp svg { width: 15px; height: 15px; color: var(--cyan); }

/* ---------------- Layout ---------------- */
.policy-layout {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: clamp(48px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
}

/* grid children default to min-width:auto, which lets wide content push the
   whole column past the viewport — pin them to the track instead */
.policy-layout > * { min-width: 0; }

/* Table of contents */
.policy-toc {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: 24px 20px;
  box-shadow: var(--shadow-deep);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}

.policy-toc h2 {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  font-weight: 600;
}

.policy-toc ol { counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }

.policy-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.83rem;
  color: var(--ink-dim);
  line-height: 1.35;
  border-left: 2px solid transparent;
  transition: all 0.3s var(--ease);
}

.policy-toc a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }

.policy-toc a.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(34, 230, 255, 0.07);
}

/* ---------------- Article ---------------- */
.policy-body { max-width: 78ch; }

.policy-intro {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 230, 255, 0.22);
  background: rgba(34, 230, 255, 0.05);
  padding: 24px 26px;
  margin-bottom: 46px;
}

.policy-intro p { color: var(--ink-dim); font-size: 0.95rem; }
.policy-intro p + p { margin-top: 12px; }
.policy-intro strong { color: var(--ink); font-weight: 600; }

.policy-section { scroll-margin-top: calc(var(--header-h) + 24px); padding-bottom: 46px; }

.policy-section > h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.policy-section > h2 .sec-no {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cyan);
  flex: none;
}

.policy-section > h2 + p { margin-top: 14px; }

.policy-section h3 {
  font-size: 1.03rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink);
}

.policy-section p,
.policy-section li {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.75;
}

.policy-section p + p { margin-top: 14px; }

.policy-section strong { color: var(--ink); font-weight: 600; }

.policy-section a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.policy-section a:hover { color: var(--cyan-soft); }

.policy-list { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }

.policy-list li {
  position: relative;
  padding-left: 26px;
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(34, 230, 255, 0.8);
}

.policy-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  margin-bottom: 46px;
}

/* Data table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-top: 20px;
  -webkit-overflow-scrolling: touch;
}

table.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table thead th {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
}

.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(122, 200, 255, 0.07);
  color: var(--ink-dim);
  vertical-align: top;
  line-height: 1.6;
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(34, 230, 255, 0.035); }
.data-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

.tag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.tag-pill.req { background: rgba(34, 230, 255, 0.13); color: var(--cyan); }
.tag-pill.opt { background: rgba(124, 107, 255, 0.16); color: #a99bff; }
.tag-pill.no { background: rgba(157, 255, 92, 0.13); color: var(--lime); }

/* Callout */
.callout {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(124, 107, 255, 0.08);
  padding: 22px 24px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.callout .co-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 230, 255, 0.1);
  border: 1px solid rgba(34, 230, 255, 0.24);
  color: var(--cyan);
}
.callout .co-icon svg { width: 19px; height: 19px; }

.callout h4 { font-size: 0.98rem; margin-bottom: 6px; font-weight: 600; }
.callout p { font-size: 0.9rem; color: var(--ink-dim); }

/* Contact block */
.policy-contact {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-deep);
  margin-top: 24px;
}

.policy-contact .pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.policy-contact .pc-item .pc-label {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 6px;
}

.policy-contact .pc-item .pc-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.policy-contact .pc-item a { color: var(--cyan); text-decoration: none; }
.policy-contact .pc-item a:hover { text-decoration: underline; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
}
.back-home svg { width: 16px; height: 16px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .policy-layout { grid-template-columns: 1fr; gap: 34px; }
  .policy-toc {
    position: relative;
    top: 0;
    max-height: none;
  }
  .policy-toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 4px;
  }
}

@media (max-width: 620px) {
  .callout { grid-template-columns: 1fr; }
  .policy-section > h2 { flex-direction: column; gap: 6px; }
  .policy-toc ol { grid-template-columns: 1fr; }
}
