/* Shubi policy pages. All resources are served locally. */
:root { color-scheme: light; --blue: #0c67ce; --cyan: #66d8f7; --ink: #172c45; --muted: #53687f; --line: #dfE8f2; --surface: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 90% 0%, #ddf8ff 0, transparent 38rem), linear-gradient(180deg, #eef5ff 0, #f8fafd 36rem); font: 1rem/1.8 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-wrap: break-word; }
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 4px; }
.topbar { max-width: 68rem; margin: 0 auto; padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; font-size: 1.35rem; font-weight: 750; letter-spacing: -.04em; }
.brand img { border-radius: .8rem; box-shadow: 0 4px 16px #194c7b10; }
.topbar nav { display: flex; flex-wrap: wrap; gap: .3rem; background: #ffffffb8; padding: .3rem; border: 1px solid #d9e7f5; border-radius: 2rem; font-size: .875rem; line-height: 1.4; }
.topbar nav a, .topbar nav span { padding: .55rem .85rem; border-radius: 2rem; text-decoration: none; }
.topbar nav [aria-current] { background: var(--blue); color: white; font-weight: 650; }
.topbar nav a:hover { background: #eaf4ff; }
main.policy { max-width: 64rem; margin: 1.5rem auto 4rem; padding: 3.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1.6rem; box-shadow: 0 16px 60px #2357890a; }
header { margin-bottom: 1.5rem; }
.eyebrow { margin: 0 0 1rem; color: var(--blue); font-size: .875rem; font-weight: 750; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 750; }
.updated { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); }
p { margin: .7rem 0; }
.policy > p { max-width: 42rem; font-size: 1.125rem; color: var(--muted); }
.reading-layout { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 3rem; border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 2rem; }
.contents { align-self: start; position: sticky; top: 2rem; }
.contents > p { margin: .25rem 0 1rem; font-size: .875rem; font-weight: 700; }
.contents nav { display: flex; flex-direction: column; border-left: 2px solid #e4eef8; }
.contents a { font-size: .875rem; line-height: 1.5; padding: .5rem 0 .5rem 1rem; color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--blue); background: #f3f8ff; }
section { padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
section:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
h2 { margin: 0 0 .75rem; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.4; }
footer { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; color: var(--muted); font-size: .875rem; }
footer span { padding: 0 .45rem; }
.language-page { width: min(42rem, calc(100% - 3rem)); margin: 7vh auto; padding: 3rem; text-align: center; background: white; border: 1px solid var(--line); border-radius: 1.75rem; box-shadow: 0 16px 60px #2357890a; }
.hero-icon { border-radius: 1.5rem; box-shadow: 0 8px 32px #1867cd12; }
.brand-name { font-size: 1.125rem; font-weight: 700; margin: 1rem 0; }
.language-page h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.language-page h1 span { display: inline-block; color: var(--muted); font-weight: 500; font-size: .8em; margin-top: .5rem; }
.language-page nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.language-option { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 1.25rem; border: 1px solid #d5e5f6; border-radius: 1rem; text-decoration: none; background: #f7fbff; transition: background .15s, border-color .15s; }
.language-option:hover { background: #eaf5ff; border-color: var(--blue); }
.language-option strong { font-size: 1.125rem; }
.language-option span { color: var(--muted); font-size: .875rem; margin-top: .25rem; }
@media (max-width: 800px) { main.policy { margin: 1rem 1rem 2rem; padding: 2rem; } .reading-layout { grid-template-columns: 1fr; gap: 1.75rem; } .contents { position: static; } .contents nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .topbar { padding: 1rem; } .brand { gap: .5rem; } .brand img { width: 40px; height: 40px; } .topbar nav a, .topbar nav span { padding: .45rem .65rem; } main.policy { padding: 1.5rem; border-radius: 1.2rem; } .contents nav { grid-template-columns: 1fr; } .language-page { padding: 2rem 1.5rem; } .language-page nav { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .language-option { transition: none; } }
@media print { body { background: white; color: black; } .topbar, .contents { display: none; } main.policy { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; } .reading-layout { display: block; } section { break-inside: avoid; } }
