/* Shared design for the Privacy Policy and Terms & Conditions pages.
   Follows the site theme: dark by default, light via html[data-theme="light"]. */
/* Page-scoped design. Follows the site theme: dark by default, light via
   html[data-theme="light"]. */
.pv {
    --pv-bg: var(--color-dark, #1a1a1a);
    --pv-card: rgba(255,255,255,.04);
    --pv-card-2: rgba(255,255,255,.07);
    --pv-line: rgba(255,255,255,.12);
    --pv-text: #f1f3f8;
    --pv-text-2: #b7bdcb;
    --pv-gold: #d4af37;
    --pv-gold-soft: rgba(212,175,55,.14);
    --pv-gold-text: #e8c766;
    background: var(--pv-bg);
    color: var(--pv-text);
}
html[data-theme="light"] .pv {
    --pv-bg: #f6f4ee;
    --pv-card: #ffffff;
    --pv-card-2: #faf7ee;
    --pv-line: #e5e0d1;
    --pv-text: #1a1d24;
    --pv-text-2: #4f566b;
    --pv-gold-soft: rgba(170,130,10,.1);
    --pv-gold-text: #8a6a0a;
}

.pv-hero { padding: 7rem 0 3rem; text-align: center; position: relative; }
.pv-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--pv-gold-text); font-size: .76rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.pv-kicker::before, .pv-kicker::after { content: ''; width: 26px; height: 1px; background: var(--pv-gold-text); opacity: .5; }
.pv-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 800; line-height: 1.12; margin: 1rem 0 .9rem; color: var(--pv-text); }
.pv-hero h1 em { font-style: normal; color: var(--pv-gold); }
.pv-hero p { max-width: 640px; margin: 0 auto; color: var(--pv-text-2); font-size: 1.02rem; line-height: 1.7; }
.pv-meta { display: inline-flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }
.pv-meta span { padding: .4rem .85rem; border-radius: 99px; background: var(--pv-card); border: 1px solid var(--pv-line); font-size: .78rem; color: var(--pv-text-2); }
.pv-meta b { color: var(--pv-text); font-weight: 700; }

.pv-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 5rem; }

/* At a glance */
.pv-glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.75rem; }
.pv-glance-item { padding: 1.25rem 1.2rem; border-radius: 16px; background: var(--pv-card); border: 1px solid var(--pv-line); }
.pv-glance-item i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .8rem; background: linear-gradient(135deg, #f4e5a1, #d4af37 60%, #b8901f); color: #17140e; }
.pv-glance-item strong { display: block; font-size: .95rem; margin-bottom: .25rem; color: var(--pv-text); }
.pv-glance-item span { display: block; font-size: .82rem; line-height: 1.55; color: var(--pv-text-2); }

/* Layout: sticky contents + article */
.pv-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.pv-toc { position: sticky; top: 100px; padding: 1.2rem; border-radius: 16px; background: var(--pv-card); border: 1px solid var(--pv-line); }
.pv-toc h2 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--pv-gold-text); margin: 0 0 .7rem; font-weight: 700; }
.pv-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: pv; display: flex; flex-direction: column; gap: 2px; }
.pv-toc li { counter-increment: pv; }
.pv-toc a { display: flex; gap: .6rem; padding: .45rem .55rem; border-radius: 8px; font-size: .84rem; color: var(--pv-text-2); text-decoration: none; transition: background .2s, color .2s; }
.pv-toc a::before { content: counter(pv); min-width: 1.15rem; font-weight: 700; color: var(--pv-gold-text); }
.pv-toc a:hover, .pv-toc a.on { background: var(--pv-gold-soft); color: var(--pv-text); text-decoration: none; }

.pv-article { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.pv-sec { padding: 1.9rem 2rem; border-radius: 18px; background: var(--pv-card); border: 1px solid var(--pv-line); scroll-margin-top: 100px; }
.pv-sec h2 { display: flex; align-items: center; gap: .75rem; font-size: 1.25rem; font-weight: 800; margin: 0 0 1rem; color: var(--pv-text); }
.pv-sec h2 .n { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-size: .85rem; background: var(--pv-gold-soft); color: var(--pv-gold-text); }
.pv-sec h3 { font-size: .95rem; font-weight: 700; margin: 1.4rem 0 .5rem; color: var(--pv-text); }
.pv-sec p, .pv-sec li { color: var(--pv-text-2); font-size: .95rem; line-height: 1.75; }
.pv-sec p { margin: 0 0 .85rem; }
.pv-sec p:last-child { margin-bottom: 0; }
.pv-sec ul { margin: 0 0 .9rem; padding-left: 1.2rem; }
.pv-sec li { margin-bottom: .35rem; }
.pv-sec li::marker { color: var(--pv-gold); }
.pv-sec strong { color: var(--pv-text); }
.pv-sec a { color: var(--pv-gold-text); text-decoration: underline; text-underline-offset: 3px; }

.pv-table { width: 100%; border-collapse: collapse; margin: .4rem 0 1rem; font-size: .88rem; }
.pv-table th { text-align: left; padding: .65rem .8rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pv-gold-text); border-bottom: 1px solid var(--pv-line); }
.pv-table td { padding: .75rem .8rem; vertical-align: top; color: var(--pv-text-2); border-bottom: 1px solid var(--pv-line); line-height: 1.55; }
.pv-table td:first-child { color: var(--pv-text); font-weight: 600; white-space: nowrap; }
.pv-table tr:last-child td { border-bottom: 0; }

.pv-note { display: flex; gap: .8rem; padding: 1rem 1.15rem; border-radius: 14px; background: var(--pv-gold-soft); border: 1px solid rgba(212,175,55,.3); margin: .4rem 0 1rem; }
.pv-note i { color: var(--pv-gold-text); margin-top: .2rem; }
.pv-note p { margin: 0; color: var(--pv-text); font-size: .9rem; }

.pv-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: .6rem; }
.pv-contact a, .pv-contact div { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--pv-card-2); border: 1px solid var(--pv-line); text-decoration: none; color: var(--pv-text); }
.pv-contact small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pv-gold-text); font-weight: 700; }
.pv-contact span { font-size: .92rem; font-weight: 600; word-break: break-word; }
.pv-contact a:hover { border-color: var(--pv-gold); text-decoration: none; }

@media (max-width: 960px) {
    .pv-glance { grid-template-columns: repeat(2, 1fr); }
    .pv-layout { grid-template-columns: 1fr; }
    .pv-toc { position: static; }
    .pv-toc ol { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .pv-hero { padding: 5.5rem 0 2rem; }
    .pv-glance { grid-template-columns: 1fr; }
    .pv-sec { padding: 1.4rem 1.2rem; }
    .pv-toc ol { grid-template-columns: 1fr; }
    .pv-contact { grid-template-columns: 1fr; }
    .pv-table, .pv-table tbody, .pv-table tr, .pv-table td { display: block; width: 100%; }
    .pv-table thead { display: none; }
    .pv-table tr { padding: .6rem 0; border-bottom: 1px solid var(--pv-line); }
    .pv-table tr:last-child { border-bottom: 0; }
    .pv-table td { border: 0; padding: .15rem 0; white-space: normal !important; }
}
@media (prefers-reduced-motion: no-preference) { .pv { scroll-behavior: smooth; } }
