:root{
  --bg: #ffffff;
  --card: #ffffff;
  --text: #0b0b0b;
  --muted: rgba(0,0,0,.62);
  --line: rgba(0,0,0,.08);
  --shadow: 0 14px 40px rgba(0,0,0,.10);
  --black: #000000;
  --yellow: #FFC107;
  --radius: 18px;
  --radius2: 26px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% 0%, rgba(255,193,7,.15), transparent 55%),
              radial-gradient(900px 500px at 90% 20%, rgba(0,0,0,.06), transparent 55%),
              var(--bg);
}

.container{
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--black);
  color: var(--yellow);
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
.brand__title{
  font-weight: 900;
  letter-spacing: .2px;
}
.brand__subtitle{
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn{
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .08s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  background: var(--black);
  color: var(--yellow);
}
.btn--ghost{
  background: rgba(0,0,0,.06);
  color: var(--text);
}
.btn:disabled{
  opacity: .6;
  cursor: not-allowed;
}

.main{
  padding: 18px 0 40px;
}

.hero{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px 18px;
  margin-top: 14px;
}
.hero h1{
  margin: 0 0 6px;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 1000;
  letter-spacing: -.2px;
}
.hero p{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}
.mono{
  font-family: var(--mono);
  font-size: 0.95em;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255,193,7,.18);
  border: 1px solid rgba(255,193,7,.35);
}

.tabs{
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  flex-wrap: wrap;
}

.tab{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--card);
  font-weight: 950;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.tab[aria-selected="true"]{
  background: rgba(255,193,7,.18);
  border-color: rgba(255,193,7,.45);
}

.panel{
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--yellow);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 13px;
}

.meta{
  color: var(--muted);
  font-weight: 700;
}
.meta a{
  color: var(--text);
  font-weight: 900;
  text-decoration: underline;
}

.legal-text{
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  font-size: 15px;
  color: rgba(0,0,0,.88);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

.is-hidden{ display: none; }

.footer{
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.footer__card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.footer__title{
  font-weight: 1000;
  margin-bottom: 6px;
}
.footer__text{
  color: var(--muted);
  font-weight: 700;
}
.footer__text a{
  color: var(--text);
  font-weight: 950;
  text-decoration: underline;
}

.footer__note{
  text-align: center;
  color: rgba(0,0,0,.45);
  font-weight: 800;
}

@media print{
  .topbar, .tabs, .actions, .footer__note { display: none !important; }
  body{ background: #fff; }
  .hero{ box-shadow: none; border: 0; }
  .panel{ box-shadow: none; }
  .panel__meta{ border-bottom: 1px solid #ddd; }
}
