/* Policy and gallery pages share the homepage's quiet editorial palette. */
.subpage {
    --ink: #282334;
    --muted: #6a6575;
    --paper: #faf9f6;
    --line: #e8e4ed;
    --accent: #6b21a8;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
.subpage .container { width: 100%; max-width: 1240px; padding-inline: clamp(20px, 4vw, 48px); }
.subpage :is(h1, h2, h3) { letter-spacing: -.035em; text-wrap: balance; }
.subpage :is(p, li, dd) { line-height: 1.8; }
.subpage :is(p, a, h1, h2, h3, h4, dt, dd, li) { overflow-wrap: anywhere; }
.subpage :is(a, button, input):focus-visible { outline: 3px solid #a78bfa; outline-offset: 4px; }
.subpage ::selection { background: #e9ddf4; color: #321449; }
.subpage :is(main, section)[id] { scroll-margin-top: 100px; }
.subpage > header { position: sticky; top: 0; background: rgb(41 23 59 / 96%); backdrop-filter: blur(16px); box-shadow: none; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.subpage > header > .container { max-width: 1440px; min-height: 73px; }
.subpage #homeLogo { flex-shrink: 0; }
.subpage #homeLogo img { height: 48px; }
.subpage #homeLogo span { font-size: 1.05rem; letter-spacing: -.025em; }
.subpage #mainNav { font-size: .8rem; gap: 18px; }
.subpage #mainNav > a { color: #fff; white-space: nowrap; }
.subpage #mainNav > a[aria-current="page"] { color: #d8b4fe; }
.subpage #mainNav > .bg-white,
.subpage #mainNav > .subpage-nav-cta { background: white; color: var(--accent); border-radius: 999px !important; padding: 10px 18px; }
.subpage #langDropdown { color: var(--ink); border: 1px solid var(--line); border-radius: 14px; }
.subpage #langDropdown button { min-height: 44px; }
.subpage-back { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); min-height: 44px; }
.subpage-back:hover { color: var(--accent); }
.subpage-hero { padding-block: 32px 56px; }
.subpage-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-top: 36px; }
.subpage .subpage-eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; }
.subpage h1 { font-size: clamp(2.5rem, 4.7vw, 4.15rem); line-height: 1.08; font-weight: 600; margin: 0; color: var(--ink); }
.subpage-intro { color: var(--muted); max-width: 36rem; font-size: 1rem; }
.subpage .subpage-date { font-size: .8rem; color: var(--muted); margin-top: 24px; }
.subpage-button { display: inline-flex; justify-content: center; align-items: center; padding: 12px 24px; min-height: 44px; background: var(--accent); color: white; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-top: 24px; }
.subpage-button:hover { background: #4c187a; }

/* Readable policy column with a sticky desktop index. */
.subpage .policy-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: clamp(28px, 4vw, 56px); padding-bottom: 80px; }
.policy-sidebar { position: sticky; top: 105px; padding: 24px 0; border-top: 1px solid var(--line); }
.policy-toc { display: flex; flex-direction: column; gap: 6px; }
.policy-toc a { display: flex; align-items: baseline; gap: 12px; padding: 12px; min-height: 44px; font-size: .85rem; color: var(--muted); border-radius: 12px; }
.policy-toc a:hover, .policy-toc a:focus-visible { background: #eee7f5; color: var(--accent); }
.policy-toc a > span:first-child { color: #8d7c9b; font-size: .7rem; font-variant-numeric: tabular-nums; }
.policy-gallery-link { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.policy-sections { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.policy-sections > section { min-width: 0; padding: clamp(24px, 3.5vw, 44px); background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: none; }
.policy-sections > section:target { border-color: #cbb5dd; }
.policy-sections h2 { color: var(--ink); font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1.25; font-weight: 600; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.policy-sections h3 { color: #3f344b; line-height: 1.4; font-size: 1.05rem; font-weight: 600; margin-top: 28px; }
.policy-sections :is(p, ul, dl, ol) { color: var(--muted); font-size: .92rem; }
.policy-sections li + li { margin-top: 8px; }
.policy-sections ul { padding-left: 20px; }
.policy-sections li::marker { color: #a68cba; }
.policy-sections #pricing-terms > .bg-purple-50 { background: #f4f0f7; border-color: var(--line); }
.policy-sections #pricing-terms .bg-purple-50 h3 { margin-top: 0; }
.policy-sections #pricing-terms .bg-amber-50 { background: #f8f4eb; border-color: #e9dfc8; color: #736044; }
.policy-sections #pricing-terms dl > .flex { align-items: baseline; }
.policy-sections #pricing-terms dd { margin-left: 0; }
.policy-sections #pricing-terms dl > .flex dd { flex-shrink: 0; }

/* Gallery: lightly framed images, airy category headers, no heavy shadows. */
.subpage .gallery-main { padding-bottom: 80px; }
.gallery-page .subpage-heading { grid-template-columns: 1.2fr 1fr; }
.gallery-categories { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 32px; margin-top: 36px; border-top: 1px solid var(--line); }
.gallery-categories a { display: inline-flex; gap: 18px; align-items: center; min-height: 46px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; font-size: .85rem; }
.gallery-categories a:hover { border-color: #cbb5dd; background: #f2edf7; }
.category-count { color: #9078a3; font-size: .7rem; font-variant-numeric: tabular-nums; }
.gallery-page main > section { padding-top: 28px; border-top: 1px solid var(--line); }
.gallery-page main > section + section { margin-top: 64px; }
.gallery-page main > section h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 600; line-height: 1.2; color: var(--ink); }
.gallery-page main > section > p { color: var(--muted); max-width: 44rem; font-size: .95rem; }
.gallery-page .gallery-grid { gap: 20px; }
.gallery-page .gallery-card { border: 1px solid var(--line); border-radius: 20px; box-shadow: none; transition: border-color .2s, background .2s; }
.gallery-page .gallery-card:hover { transform: none; border-color: #bda4d0; background: #fcfaff; box-shadow: none; }
.gallery-page .gallery-card img { height: auto; aspect-ratio: 4 / 3; background: #f2eff5; padding: 12px; }
.gallery-page .gallery-card-machine img { aspect-ratio: 5 / 4; padding: 20px; }
.gallery-page .gallery-card-footer { padding: 16px; font-size: .82rem; color: #51435e; }
.gallery-page .gallery-card-footer > i { display: grid; place-items: center; background: #f2edf7; border-radius: 50%; width: 30px; height: 30px; flex-shrink: 0; }
.gallery-page .image-preview { border-radius: 24px; background: var(--paper); }
.gallery-page .image-preview-header { position: sticky; top: 0; z-index: 1; background: var(--paper); border-color: var(--line); }
.gallery-page .image-preview-header h2 { font-size: 1rem; }
.gallery-page .image-preview-close { border-radius: 999px; background: #eee7f5; min-height: 44px; }
.gallery-page .image-preview::backdrop { background: rgb(30 20 41 / 82%); }

/* Matching footer and touch-friendly consent panels. */
.subpage > footer { background: #21172b; margin-top: 0; }
.subpage > footer > .container { gap: 32px; }
.subpage > footer :is(input, button) { min-height: 44px; }
.subpage #subscribe { flex-wrap: wrap; gap: 8px; }
.subpage #subscribe input { flex: 1 1 140px; min-width: 0; border-radius: 8px !important; }
.subpage #subscribe button { border-radius: 8px !important; }
.subpage #cookieConsent { padding: 20px; }
.subpage #cookieConsent > div { max-height: calc(100dvh - 40px); overflow: auto; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 24px; }
.subpage #cookieConsent button { min-height: 44px; border-radius: 999px; }
.subpage #cookieConsent .gap-4 { flex-wrap: wrap; }

@media (min-width: 1280px) {
    .subpage #mainNav { display: flex; }
    .subpage #mainNav > :not([hidden]) ~ :not([hidden]) { margin-left: 0; }
}
@media (max-width: 1279px) {
    .subpage #mainNav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 12px 20px 20px; background: #29173b; border-bottom: 1px solid #493457; max-height: calc(100dvh - 73px); overflow-y: auto; }
    .subpage #mainNav:not(.hidden) { display: flex; }
    .subpage #mainNav > a { white-space: normal; min-height: 44px; border-radius: 10px; }
    .subpage #mainNav #langBtn { min-height: 44px; }
    .subpage #mainNav #langDropdown { position: static; }
    .subpage #mainNav > .bg-white,
    .subpage #mainNav > .subpage-nav-cta { margin-block: 8px; }
}
@media (max-width: 1023px) {
    .subpage .policy-layout { grid-template-columns: 1fr; gap: 28px; }
    .policy-sidebar { position: static; padding: 24px 0 0; }
    .policy-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .policy-toc a { background: #f0edf4; }
    .policy-gallery-link { margin-top: 16px; padding-top: 8px; border: 0; }
    .policy-page > footer > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .subpage-hero { padding-block: 20px 36px; }
    .subpage-heading, .gallery-page .subpage-heading { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
    .subpage h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); }
    .subpage .subpage-eyebrow { margin-bottom: 12px; }
    .subpage .subpage-date { margin-top: 16px; }
    .policy-sections > section { padding: 24px 20px; border-radius: 20px; }
    .policy-sections h2 { font-size: 1.45rem; }
    .subpage .policy-layout, .subpage .gallery-main { padding-bottom: 48px; }
    .policy-page > footer > .grid { grid-template-columns: 1fr; }
    .gallery-categories { margin-top: 24px; padding-top: 24px; gap: 8px; }
    .gallery-categories a { gap: 12px; padding-inline: 14px; font-size: .8rem; }
    .gallery-page .gallery-grid { gap: 12px; }
    .gallery-page .gallery-card { border-radius: 16px; }
    .gallery-page .gallery-card img { padding: 8px; }
    .gallery-page .gallery-card-footer { padding: 12px; font-size: .75rem; gap: 4px; }
    .gallery-page .image-preview { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
    .gallery-page .image-preview-header { padding: 12px; gap: 8px; }
    .gallery-page .image-preview-content { padding: 12px; }
    .subpage > footer .container { padding-block: 32px; }
}
@media (max-width: 359px) {
    .policy-toc, .gallery-page .gallery-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .subpage *, .subpage *::before, .subpage *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}