/* Policies: the hub (policies.html) and each policy page (policies/*.html).
   Loaded after theme.css on those pages only. A new policy needs no new styles:
   add its page, a tab in .pol-tabs and a card on the hub. */

/* tabs between policies */
.pol-tabs { border-bottom: 1px solid var(--grid); background: #fff; }
.pol-tabs .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; }
.pol-tabs .wrap::-webkit-scrollbar { display: none; }
.pol-tabs a { flex: none; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.pol-tabs a:hover { background: var(--grey-soft); color: var(--ink); }
.pol-tabs a[aria-current="page"] { background: var(--navy); color: #fff; }

/* page head */
.pol-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.pol-meta span + span::before { content: "·"; margin-right: 14px; color: rgba(255, 255, 255, .5); }
.pol-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: var(--navy-deep); color: #fff; font-size: 14px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.pol-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* policy text: one continuous document, numbered paragraphs, no rules */
.pol-body { max-width: 760px; gap: clamp(40px, 3.6vw, 56px); }
.pol-body > section { scroll-margin-top: 96px; }
.pol-body > section > h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; font-size: clamp(22px, 1.9vw, 26px); }
.pol-n { flex: none; color: var(--sky); font-variant-numeric: tabular-nums; }
.clauses { list-style: none; display: grid; gap: 14px; }
.clauses > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 10px; scroll-margin-top: 110px; border-radius: 8px; transition: background .4s; }
.clauses > li:target { margin: -8px -12px; padding: 8px 12px; background: var(--brand-soft); }
.cl-n { font-size: 14.5px; line-height: 1.75; color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.cl-n:hover { color: var(--link); }
.clauses p { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.clauses strong { color: var(--ink); font-weight: 600; }
.clauses a { color: var(--link); }
.otp p { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.otp a { display: flex; font-size: 14px; padding-top: 5px; padding-bottom: 5px; }
.otp .pol-n { min-width: 1.7em; }
.pol-print { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 14px 0 0; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer; text-align: left; }
.pol-print:hover { color: var(--ink); }
@media (max-width: 640px) {
  .clauses > li { grid-template-columns: 36px minmax(0, 1fr); }
  .clauses p { font-size: 16px; }
}

/* hub */
.sec.pol-hub > .wrap { padding-top: clamp(40px, 5vw, 64px); }
.pol-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pol-card { display: grid; gap: 12px; align-content: start; padding: 28px; border: 1px solid var(--grid); border-radius: 14px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pol-card:hover { border-color: var(--blue-pale); box-shadow: 0 24px 48px -30px rgba(9,48,66,.35); }
.pol-card .k { font-size: 13px; color: var(--muted); }
.pol-card h2 { font-size: clamp(24px, 2vw, 28px); }
.pol-card .link-arrow { margin-top: 6px; }
.pol-inc { max-width: 760px; margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) { .pol-cards { grid-template-columns: 1fr; } }

/* print or save as PDF: the policy text only */
@media print {
  .hdr, .drawer, .search, .skip, .pol-toast, .ftr, .pol-tabs, .otp, .crumbs { display: none !important; }
  .ph14 { background: none !important; border: 0; overflow: visible; border-radius: 0; margin: 0; }
  .ph14::before { display: none; }
  .ph14 h1, .ph14 h1 .end, .ph14-lede, .pol-meta, .pol-meta span + span::before { color: #000 !important; text-shadow: none !important; }
  .ph14-in, .doc { display: block; padding: 0 !important; }
  main .wrap { border: 0 !important; max-width: none; padding: 0 2px; }
  .ph14 h1 { font-size: 24pt; }
  body { font-size: 10.5pt; color: #000; }
  .pol-body { max-width: none; gap: 18px; margin-top: 18px; }
  .clauses { gap: 6px; }
  .clauses p { font-size: 10.5pt; line-height: 1.5; color: #000; }
  .clauses > li { break-inside: avoid; }
  .pol-body > section > h2 { break-after: avoid; font-size: 13pt; }
}
