@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&display=swap");
@import url("/brand-colors.css");

/* Shared website theme. Keep native/mobile equivalents in docs/mobile-formatting.md. */
:root {
  color-scheme:dark;
  --teal-deep:#7FD6C8; --mint:#000000;
  --paper:#000000; --ink:#EAF4F1; --slate:#A8C2BC; --line:#333333;
  --good:#4CC38A; --fair:#F2C14E; --high:#F0726A;
  --on-accent:#000000; --band:#000000; --surface:#000000; --footer:#000000;
  --radius-lg:22px; --radius:12px;
  --display:"Bricolage Grotesque",system-ui,sans-serif;
  --body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  --content-width:1120px; --space-section:72px; --control-height:48px;
  /* Aliases keep the older informational and account templates on the same theme. */
  --bg:var(--paper); --text:var(--ink); --text-2:var(--slate);
  --accent:var(--teal); --accent-h:var(--teal-deep); --border:var(--line);
  --badge-bg:var(--mint); --badge-text:var(--teal-deep);
  --card-bg:var(--surface); --card:var(--surface); --badge:var(--mint);
  --shadow:none;
}
html{scroll-padding-top:100px}
body{min-height:100dvh;-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
button,input,select,textarea{font-family:var(--body)}
input,select,textarea{accent-color:var(--teal)}
input::placeholder,textarea::placeholder{color:var(--slate);opacity:.8}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button:disabled{cursor:not-allowed}
img{max-width:100%;height:auto}

/* Scoped bridge for the existing inline-styled account/legal/info templates.
   No HTML IDs, scripts, account state or API behavior are changed. */
.theme-legacy{margin:0;background:var(--paper);color:var(--ink);font:17px/1.6 var(--body);padding-bottom:env(safe-area-inset-bottom,0px)}
.theme-legacy *{box-sizing:border-box}
.theme-legacy h1,.theme-legacy h2,.theme-legacy h3,.theme-legacy h4,.theme-legacy .logo{font-family:var(--display);letter-spacing:-.01em;line-height:1.1;color:var(--ink)}
.theme-legacy h1{font-size:clamp(2.6rem,7vw,5.2rem)}
.theme-legacy h2{font-size:clamp(1.5rem,4vw,2.4rem)}
.theme-legacy a{color:var(--teal);text-underline-offset:3px;overflow-wrap:anywhere}
.theme-legacy a:hover{color:var(--teal-deep)}
.theme-legacy p{overflow-wrap:anywhere}
.theme-legacy header{background:var(--paper);border-bottom:1px solid var(--line);padding:16px max(20px,calc((100vw - 1120px)/2));gap:16px;flex-wrap:wrap}
.theme-legacy .logo{color:var(--ink);font-size:1.5rem}
.theme-legacy header nav,.theme-legacy .header-actions{flex-wrap:wrap;gap:12px}
.theme-legacy .page{width:min(1120px,100% - 40px);max-width:1120px;margin-inline:auto;padding:40px 0 72px}
.theme-legacy .hero{padding:48px 0 56px}
.theme-legacy .hero h1{font-size:clamp(2.6rem,7vw,5.2rem);line-height:1.05}
.theme-legacy .hero p,.theme-legacy .terms-header p{color:var(--slate)}
.theme-legacy :is(.card,.stat-card,.dist-card,.use-card,.step-card,.terms-content,.metric,.subsection){background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:none}
.theme-legacy :is(.card,.dist-card,.use-card,.step-card){padding:24px}
.theme-legacy :is(.supply-banner,.profile-header,.highlight-box,.cta-box,.cta-section,.summary-box){background:var(--mint);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-lg)}
.theme-legacy :is(.highlight-box p,.highlight-box h3,.cta-box p,.cta-section p){color:var(--ink)}
.theme-legacy :is(.disclaimer,.contact-section,.use-shop-section){background:var(--band);color:var(--slate);border-color:var(--line)}
.theme-legacy :is(.btn,.btn-primary,.btn-ghost,.hero-cta,header nav a.cta-link){display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 22px;border-radius:999px;font:600 1rem var(--body);max-width:100%;text-align:center;transition:transform .18s ease}
.theme-legacy :is(.btn-primary,.hero-cta,header nav a.cta-link,.highlight-box .btn){background:var(--teal);border:2px solid var(--teal);color:var(--on-accent)}
.theme-legacy :is(.btn-primary,.hero-cta,header nav a.cta-link):hover{background:var(--teal-deep);color:var(--on-accent)}
.theme-legacy :is(.btn-ghost,.btn-outline){background:transparent;color:var(--teal);border:2px solid var(--teal)}
.theme-legacy .btn-danger{background:transparent;color:var(--high);border:1px solid var(--high)}
.theme-legacy :is(.step-number,.section-number){background:var(--teal);color:var(--on-accent);font-family:var(--display)}
.theme-legacy .terms-header h1{color:var(--ink)}
.theme-legacy .terms-section h2,.theme-legacy .contact-email,.theme-legacy .back-link{color:var(--teal)}
.theme-legacy :is(.terms-section p,.terms-section li,.terms-footer){color:var(--slate)}
.theme-legacy .terms-section ul li::before{color:var(--teal)}
.theme-legacy .warning-box,.theme-legacy .no-wallet-notice{background:color-mix(in srgb,var(--fair) 10%,var(--paper));border-color:var(--fair);color:var(--fair)}
.theme-legacy .warning-box p{color:var(--fair)}
.theme-legacy .avatar{background:var(--surface);border-color:var(--teal);color:var(--teal-deep)}
.theme-legacy .badge-type{background:var(--surface);border-color:var(--line);color:var(--teal-deep)}
.theme-legacy footer{background:var(--footer);border-color:var(--line);color:var(--slate);padding:40px 20px calc(32px + env(safe-area-inset-bottom,0px))}
.theme-legacy :is(.columns,.distribution-grid,.governance-grid,.stats-grid,.section-grid,.use-grid)>*{min-width:0}
.theme-legacy .info-row,.theme-legacy .reward-row{flex-wrap:wrap}
.theme-legacy .allocation-wallet-row{display:flex;gap:8px;align-items:flex-start}
.theme-legacy .allocation-wallet a{min-width:0;overflow-wrap:anywhere;font-family:ui-monospace,monospace}
.theme-legacy .allocation-wallet button{flex:none;min-height:44px;background:var(--mint);color:var(--teal);border:1px solid var(--line);border-radius:8px;padding:6px 12px}
.theme-legacy .subsection h3 .num{background:var(--teal);color:var(--on-accent)}
@media(max-width:767px){
  .theme-legacy .page{width:calc(100% - 32px);padding-top:24px}
  .theme-legacy :is(.columns,.distribution-grid,.governance-grid,.stats-grid,.section-grid,.use-grid){grid-template-columns:minmax(0,1fr)}
  .theme-legacy header{position:relative;align-items:flex-start}
  .theme-legacy .terms-content{padding:24px 20px}
  .theme-legacy .hero{padding:32px 0 40px}
  .theme-legacy .hero h1{font-size:clamp(2.6rem,10vw,4rem)}
  .theme-legacy .terms-container{padding:28px 16px}
  .theme-legacy .step-card{padding:22px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
