/* RKOKO design tokens: see BRAND.md for reuse guidance. */
:root {
  color-scheme: light;
  --rk-ink: #181b24;
  --rk-ink-soft: #262b34;
  --rk-yellow: #fcd232;
  --rk-white: #fefefe;
  --rk-paper: #f7f7f4;
  --rk-text: #252a32;
  --rk-muted: #656c76;
  --rk-border: #e0e3e2;
  --rk-dark-border: rgba(255,255,255,.16);
  --rk-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rk-radius: 18px;
  --rk-width: 1200px;
  --rk-gutter: clamp(22px, 5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--rk-font); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--rk-yellow); outline-offset: 4px; border-radius: 4px; }
img { display: block; max-width: 100%; }
::selection { background: var(--rk-yellow); color: var(--rk-ink); }
.page-width, .page-shell { width: min(100% - 2 * var(--rk-gutter), var(--rk-width)); margin-inline: auto; }
.page-shell { min-height: 100svh; display: flex; flex-direction: column; }
.home-page, .error-page { background: var(--rk-ink); color: var(--rk-white); }
.site-header { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--rk-white); text-decoration: none; font-size: 1.37rem; font-weight: 850; letter-spacing: -.075em; line-height: 1; }
.brand img { width: 42px; height: 42px; border-radius: 8px; }
.brand-dot, .title-period { color: var(--rk-yellow); }
.header-label, .header-back { font-size: .72rem; font-weight: 750; letter-spacing: .16em; color: #a9afb9; }
.header-back { text-decoration: none; letter-spacing: .04em; transition: color .2s ease; }
.header-back:hover { color: var(--rk-yellow); }
.header-back span { padding-left: 6px; }
.home-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 7vh, 100px) 0 clamp(55px, 8vh, 105px); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); align-items: center; gap: clamp(30px, 5vw, 80px); margin-bottom: clamp(50px, 7vw, 98px); }
.hero-content { min-width: 0; }
.hero-mark { width: min(100%, 320px); aspect-ratio: 1; justify-self: end; position: relative; isolation: isolate; transform: rotate(4deg); }
.hero-mark::before { content: ""; position: absolute; inset: 18px -16px -18px 16px; z-index: -1; border-radius: 24px; background: var(--rk-yellow); }
.hero-mark img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--rk-dark-border); border-radius: 24px; box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; color: var(--rk-yellow); font-size: .74rem; font-weight: 800; letter-spacing: .19em; }
.eyebrow-line { display: inline-block; width: 25px; height: 2px; background: currentColor; }
.hero h1, .policy-intro h1, .error-main h1 { margin: 0; font-size: clamp(4.5rem, 11vw, 9.25rem); line-height: .91; letter-spacing: -.095em; font-weight: 800; }
.hero h1 > span, .policy-intro h1 > span { color: #bfc3ca; }
.hero-copy { max-width: 490px; margin: 30px 0 0; font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.65; color: #bdc2ca; }
.home-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.support-card, .links-card { min-height: 295px; border-radius: var(--rk-radius); padding: 30px 32px; display: flex; flex-direction: column; }
.support-card { background: var(--rk-yellow); color: var(--rk-ink); justify-content: space-between; }
.links-card { background: var(--rk-ink-soft); border: 1px solid var(--rk-dark-border); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; font-size: .69rem; font-weight: 850; letter-spacing: .17em; }
.card-topline > span:last-child { font-size: 1.2rem; line-height: 1; }
.support-card h2, .links-card h2 { margin: 0 0 10px; font-size: clamp(1.65rem, 2.3vw, 2.1rem); letter-spacing: -.055em; line-height: 1.13; }
.support-card p { max-width: 390px; margin: 0; line-height: 1.55; font-size: .94rem; color: #41412e; }
.email-link { margin-top: 33px; padding-top: 17px; border-top: 1px solid rgba(24,27,36,.35); display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
.email-link span:last-child { transition: transform .2s ease; }
.email-link:hover span:last-child { transform: translate(3px, -3px); }
.links-card h2 { margin-bottom: 17px; }
.link-list { display: flex; flex-direction: column; }
.link-list a { min-height: 48px; padding: 9px 0; border-bottom: 1px solid var(--rk-dark-border); display: flex; align-items: center; justify-content: space-between; gap: 15px; text-decoration: none; font-size: .91rem; font-weight: 630; transition: color .2s ease, padding .2s ease; }
.link-list a:last-child { border-bottom: 0; }
.link-list a:hover { color: var(--rk-yellow); padding-left: 5px; }
.link-list a > span:first-child { display: flex; align-items: center; gap: 18px; }
.link-index { color: #868d99; font-size: .69rem; font-weight: 800; letter-spacing: .1em; }
.site-footer { border-top: 1px solid var(--rk-dark-border); min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; color: #9299a5; font-size: .72rem; }
.footer-brand { font-size: .95rem; font-weight: 850; letter-spacing: -.075em; color: var(--rk-white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.site-footer a { text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--rk-yellow); }
.error-main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 80px 0 120px; }
.error-main h1 { font-size: clamp(7rem, 20vw, 15rem); }
.error-main > p:not(.eyebrow) { color: #bdc2ca; font-size: 1.1rem; margin: 22px 0 34px; }
.back-button { background: var(--rk-yellow); color: var(--rk-ink); padding: 15px 20px; border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.back-button:hover { transform: translateY(-2px); background: #ffe66c; }
.back-button span { padding-left: 10px; }
.policy-page { background: var(--rk-paper); color: var(--rk-text); }
.policy-header { min-height: 82px; background: var(--rk-ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.policy-intro { background: var(--rk-ink); color: var(--rk-white); padding: 56px 0 66px; }
.policy-intro h1 { font-size: clamp(4.5rem, 10vw, 8.5rem); }
.policy-intro > div > p:not(.eyebrow) { margin: 27px 0 32px; color: #bdc2ca; line-height: 1.6; }
.language-links { display: flex; gap: 10px; flex-wrap: wrap; }
.language-links a { min-width: 130px; padding: 12px 15px; border: 1px solid #626a74; border-radius: 8px; display: flex; justify-content: space-between; gap: 20px; align-items: center; text-decoration: none; font-size: .8rem; font-weight: 750; transition: border-color .2s ease, color .2s ease; }
.language-links a:hover { border-color: var(--rk-yellow); color: var(--rk-yellow); }
.policy-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: clamp(36px, 5.8vw, 86px); align-items: start; padding-block: 65px 110px; }
.policy-aside { min-width: 0; }
.policy-toc { position: sticky; top: 25px; max-height: calc(100svh - 50px); overflow-y: auto; scrollbar-width: thin; padding-right: 12px; display: flex; flex-direction: column; align-items: flex-start; }
.toc-heading { margin: 0 0 20px; color: var(--rk-muted); font-size: .68rem; font-weight: 850; letter-spacing: .19em; }
.policy-toc a { width: 100%; padding: 5px 0; color: var(--rk-muted); font-size: .73rem; line-height: 1.45; text-decoration: none; transition: color .2s ease; }
.policy-toc a:hover { color: var(--rk-ink); }
.policy-toc .toc-language { color: var(--rk-ink); font-weight: 850; font-size: .82rem; }
.policy-toc .toc-second { margin-top: 20px; }
.policy-content { min-width: 0; max-width: 800px; }
.policy-content-note { margin-bottom: 27px; padding: 14px 17px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--rk-border); border-radius: 9px; background: var(--rk-white); color: var(--rk-muted); font-size: .78rem; line-height: 1.5; }
.note-mark { flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--rk-yellow); box-shadow: 0 0 0 3px var(--rk-ink); }
.policy-section { scroll-margin-top: 24px; }
.policy-section h2 { margin: 0 0 32px; padding-bottom: 17px; border-bottom: 2px solid var(--rk-ink); color: var(--rk-ink); font-size: clamp(2.1rem, 4.5vw, 3.15rem); line-height: 1.1; letter-spacing: -.065em; }
.policy-section h3 { scroll-margin-top: 28px; margin: 40px 0 14px; color: var(--rk-ink); font-size: clamp(1.18rem, 1.8vw, 1.42rem); line-height: 1.35; letter-spacing: -.035em; }
.policy-section p { margin: 0 0 18px; color: #3e4650; font-size: .96rem; line-height: 1.82; }
.policy-section strong { color: var(--rk-ink); font-weight: 730; }
.policy-section a { color: #735a00; text-underline-offset: 3px; }
.policy-section a:hover { color: var(--rk-ink); }
.policy-section hr { border: 0; border-top: 1px solid var(--rk-border); margin: 65px 0; }
.policy-section + .policy-section { margin-top: 72px; }
.table-scroll { margin: 24px 0 30px; overflow-x: auto; border: 1px solid var(--rk-border); border-radius: 10px; background: var(--rk-white); }
.policy-section table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .85rem; line-height: 1.6; }
.policy-section th, .policy-section td { padding: 13px 15px; border-bottom: 1px solid var(--rk-border); vertical-align: top; text-align: left; }
.policy-section th { background: #eeefec; color: var(--rk-ink); font-weight: 800; }
.policy-section tr:last-child td { border-bottom: 0; }
.policy-section tr:nth-child(even) td { background: #fafaf8; }
.policy-footer { background: var(--rk-ink); }
.footer-inner { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; }
@media (max-width: 780px) {
  .site-header { min-height: 78px; }
  .home-main { padding-top: 60px; }
  .hero { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .hero h1 { font-size: clamp(4.55rem, 16vw, 7.5rem); }
  .home-grid { grid-template-columns: 1fr; }
  .support-card, .links-card { min-height: 260px; }
  .policy-layout { grid-template-columns: 1fr; padding-block: 38px 80px; }
  .policy-aside { display: none; }
  .policy-intro { padding: 42px 0 56px; }
  .policy-intro h1 { font-size: clamp(4.5rem, 14vw, 7rem); }
  .policy-content-note { margin-bottom: 38px; }
}
@media (max-width: 540px) {
  .header-label { font-size: .62rem; letter-spacing: .1em; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 36px; height: 36px; }
  .hero { margin-bottom: 48px; }
  .hero-copy { margin-top: 25px; }
  .support-card, .links-card { padding: 24px; }
  .site-footer, .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 26px; }
  .site-footer nav { gap: 10px 20px; }
  .policy-section h3 { margin-top: 34px; }
  .policy-section p { font-size: .94rem; line-height: 1.78; }
  .policy-section table { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .policy-header, .policy-intro, .policy-aside, .policy-content-note, .policy-footer { display: none; }
  .policy-page { background: white; }
  .policy-layout { display: block; width: 100%; padding: 0; }
  .policy-content { max-width: none; }
  .table-scroll { overflow: visible; }
  .policy-section table { min-width: 0; }
}
