/* Base + components for About Us and Terms of Service pages (colors come from theme.css) */
:root { --radius-lg: 32px; --radius-md: 20px; --radius-sm: 12px; }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { color: var(--text-primary); overflow-x: hidden; line-height: 1.6; }

.announcement-bar { font-size: 13px; text-align: center; padding: 10px 16px; font-weight: 500; position: relative; z-index: 10; }
.announcement-bar span { font-weight: 400; margin-left: 8px; }
header { position: sticky; top: 0; z-index: 1000; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-container { width: 100%; padding: 0 32px; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 17px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; flex: 1; display: flex; align-items: center; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 28px; list-style: none; flex: 0 0 auto; }
.nav-links a { text-decoration: none; font-size: 13px; font-weight: 400; transition: color .2s ease; display: inline-flex; align-items: center; }
.nav-links a.active { font-weight: 500; }
.nav-controls { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }
.btn-dashboard { text-decoration: none; font-size: 12px; padding: 0 16px; height: 28px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.btn-gold, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 14px; font-size: 15px; text-decoration: none; cursor: pointer; }

.page-hero { max-width: 900px; margin: 70px auto 40px; padding: 0 24px; text-align: center; position: relative; z-index: 5; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(245,197,66,.08); border: 1px solid var(--border-color); color: var(--gold-2); margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px; }
.page-hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { font-size: 19px; color: var(--text-secondary); max-width: 680px; margin: 0 auto; }
.page-hero .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 5; }
.block { margin: 0 0 72px; }
.block > h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; text-align: center; margin-bottom: 10px; color: var(--gold-1); }
.block > .lead { text-align: center; color: var(--text-secondary); font-size: 17px; max-width: 700px; margin: 0 auto 36px; }

.story { border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 44px; background: linear-gradient(160deg, rgba(24,18,6,.92), rgba(10,8,4,.94)); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.story p { color: var(--text-secondary); font-size: 16.5px; line-height: 1.8; margin-bottom: 14px; }
.story p strong { color: var(--gold-1); font-weight: 600; }
.story-logo { display: grid; place-items: center; }
.story-logo img { width: min(240px, 70%); height: auto; filter: drop-shadow(0 0 40px rgba(245,197,66,.28)); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.info-card { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px 24px; background: linear-gradient(160deg, rgba(22,17,6,.9), rgba(10,8,4,.94)); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.info-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 30px rgba(245,197,66,.10); }
.info-card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-grad); margin-bottom: 16px; }
.info-card .ico svg { width: 24px; height: 24px; stroke: #1a1203; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3 { font-size: 18px; font-weight: 600; color: var(--gold-1); margin-bottom: 8px; }
.info-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }
.info-card .tag { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-2); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flip-card { background: transparent; height: 150px; perspective: 1000px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform .6s cubic-bezier(.16,1,.3,1); transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner, .flip-card:focus .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--radius-md); border: 1px solid var(--border-color); padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.flip-card-front h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.flip-card-front p { font-size: 12.5px; color: var(--text-secondary); }
.flip-card-back { transform: rotateY(180deg); }
.flip-card-back .discord-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.flip-card-back .discord-handle { font-size: 15px; font-weight: 700; }

.cta { text-align: center; border: 1px solid var(--border-hover); border-radius: var(--radius-lg); padding: 52px 28px; background: radial-gradient(700px 260px at 50% -20%, rgba(245,197,66,.22), transparent 65%), #0a0804; }
.cta h2 { font-size: 30px; font-weight: 700; color: var(--gold-1); margin-bottom: 10px; letter-spacing: -0.02em; }
.cta p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 26px; }
.cta .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ----- Terms ----- */
.terms-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.terms-meta span { font-size: 12.5px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border-color); color: var(--text-secondary); background: rgba(245,197,66,.05); }
.terms-meta b { color: var(--gold-1); font-weight: 600; }
.summary-box { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 36px; background: linear-gradient(160deg, rgba(24,18,6,.92), rgba(10,8,4,.94)); }
.summary-box h3 { font-size: 15px; color: var(--gold-2); margin-bottom: 10px; letter-spacing: .04em; text-transform: uppercase; }
.summary-box ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; }
.summary-box li { font-size: 14.5px; color: var(--text-secondary); padding-left: 22px; position: relative; }
.summary-box li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-grad); }
.terms-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; margin-bottom: 72px; }
.toc { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px 12px; background: rgba(10,8,4,.9); }
.toc h4 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); padding: 0 10px 10px; }
.toc a { display: block; padding: 7px 10px; font-size: 13.5px; color: #B8AA86; text-decoration: none; border-radius: 8px; border-left: 2px solid transparent; transition: all .2s ease; }
.toc a:hover { color: var(--gold-1); background: rgba(245,197,66,.06); }
.toc a.on { color: var(--gold-1); background: rgba(245,197,66,.10); border-left-color: var(--gold-2); font-weight: 600; }
.terms-body section { padding: 8px 0 34px; border-bottom: 1px solid var(--border-color); margin-bottom: 34px; scroll-margin-top: 84px; }
.terms-body section:last-child { border-bottom: none; margin-bottom: 0; }
.terms-body h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; color: var(--gold-1); margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px; }
.terms-body h2 .n { font-size: 13px; font-weight: 700; color: #1a1203; background: var(--gold-grad); border-radius: 8px; padding: 3px 9px; flex: none; }
.terms-body p { color: #C9BC9A; font-size: 15.5px; line-height: 1.8; margin-bottom: 12px; }
.terms-body ul { margin: 6px 0 14px 4px; list-style: none; }
.terms-body li { color: #C9BC9A; font-size: 15.5px; line-height: 1.7; padding-left: 24px; position: relative; margin-bottom: 7px; }
.terms-body li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-3); }
.terms-body a { color: var(--gold-2); }
.callout { border-left: 3px solid var(--gold-2); background: rgba(245,197,66,.07); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 14px 0; color: #E8DDBB; font-size: 14.5px; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-hover); background: rgba(10,8,4,.92); color: var(--gold-2); font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s ease; z-index: 900; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

footer { padding: 40px 24px; font-size: 13px; text-align: center; position: relative; z-index: 5; }
footer p { margin-bottom: 8px; }

@media (max-width: 960px) {
    .cards, .cards.three { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .story { grid-template-columns: 1fr; padding: 30px 22px; }
    .terms-layout { grid-template-columns: 1fr; gap: 24px; }
    .toc { position: static; max-height: none; }
    .summary-box ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .cards, .cards.three { grid-template-columns: 1fr; }
    .page-hero { margin-top: 44px; }
    .page-hero p { font-size: 17px; }
}
@media print {
    header, .announcement-bar, .toc, .to-top, footer, .ev-pin, body::before { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .terms-body p, .terms-body li { color: #111 !important; }
    .terms-body h2 { color: #000 !important; }
}
