/* ============================================================
   disclaimer.css — ai2dl.com Disclaimer Page
   Standalone CSS, no dependency on style.css
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
  --font-display: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --bg:           #f7f6f3;
  --bg-card:      #ffffff;
  --bg-elevated:  #f0ede8;
  --bg-warn:      #fff8ed;
  --bg-danger:    #fff1f1;

  --tx-primary:   #1a1814;
  --tx-secondary: #4a4640;
  --tx-muted:     #7a746c;
  --tx-faint:     #a89e94;

  --ac:           #d4622a;
  --ac-light:     #f5e6df;
  --ac-dark:      #b04e1e;

  --bd:           #e2ddd8;
  --bd-strong:    #c8c0b8;

  --warn-tx:      #92580a;
  --warn-bd:      #f5d49a;
  --danger-tx:    #c0392b;
  --danger-bd:    #f5b4b4;

  --green:        #2d7a4f;
  --green-bg:     #eef7f2;
  --green-bd:     #a8d8bc;

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;
  --r-2xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
}

[data-theme="dark"] {
  --bg:           #131210;
  --bg-card:      #1e1c19;
  --bg-elevated:  #272420;
  --bg-warn:      #2a1f0d;
  --bg-danger:    #2a1010;

  --tx-primary:   #f0ece6;
  --tx-secondary: #c4bdb4;
  --tx-muted:     #8a8078;
  --tx-faint:     #5a544e;

  --ac:           #e8784a;
  --ac-light:     #2a1a10;
  --ac-dark:      #f09060;

  --bd:           #302c28;
  --bd-strong:    #48423c;

  --warn-tx:      #e8b46a;
  --warn-bd:      #4a3410;
  --danger-tx:    #e87070;
  --danger-bd:    #4a2020;

  --green:        #4ec98a;
  --green-bg:     #0d2a1a;
  --green-bd:     #1e5a38;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--tx-primary);
  transition: background .25s, color .25s;
  min-height: 100vh;
}

a { color: var(--ac); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--bd);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--ac);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -.02em;
}

.logo-name {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--tx-primary);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.logo-tag {
  display: block;
  font-size: .65rem;
  color: var(--tx-faint);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--tx-secondary);
  text-decoration: none;
  transition: color .15s;
}

.header-nav a:hover { color: var(--ac); }

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--bd);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-muted);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.theme-toggle:hover { background: var(--bg-elevated); color: var(--tx-primary); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }

@media (max-width: 640px) {
  .header-nav { display: none; }
}

/* ── Hero band ── */
.disc-hero {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-dark) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.disc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.disc-hero .container { position: relative; }

.disc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .25rem .8rem;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(4px);
}

.disc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: .75rem;
}

.disc-hero p {
  font-size: 1.05rem;
  opacity: .88;
  max-width: 540px;
  line-height: 1.6;
}

.disc-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.disc-hero-meta span {
  font-size: .78rem;
  opacity: .75;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* ── Warning banner ── */
.disc-warning {
  background: var(--bg-warn);
  border-top: 3px solid var(--ac);
  border-bottom: 1px solid var(--warn-bd);
  padding: 1.25rem 0;
}

.disc-warning-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.disc-warning-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.disc-warning-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--warn-tx);
  margin-bottom: .25rem;
}

.disc-warning-body {
  font-size: .84rem;
  color: var(--warn-tx);
  line-height: 1.55;
}

/* ── Main content ── */
.disc-main {
  padding: 3rem 0 4rem;
}

/* ── Section card ── */
.disc-section {
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}

.disc-section:hover { box-shadow: var(--shadow-md); }

.disc-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ac);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  flex-shrink: 0;
  margin-right: .6rem;
}

.disc-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.disc-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--tx-primary);
  letter-spacing: -.02em;
}

.disc-section p {
  font-size: .9rem;
  color: var(--tx-secondary);
  line-height: 1.7;
  margin-bottom: .75rem;
}

.disc-section p:last-child { margin-bottom: 0; }

.disc-section strong { color: var(--tx-primary); font-weight: 600; }

/* ── List ── */
.disc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: .5rem;
}

.disc-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: var(--tx-secondary);
  line-height: 1.55;
}

.disc-list li::before {
  content: '→';
  color: var(--ac);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .02em;
}

/* ── Highlight box ── */
.disc-highlight {
  background: var(--ac-light);
  border: 1px solid var(--ac);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.4rem;
  margin-top: 1rem;
}

.disc-highlight p {
  font-size: .86rem;
  color: var(--ac-dark);
  margin: 0;
  line-height: 1.6;
}

[data-theme="dark"] .disc-highlight p { color: var(--ac); }

/* ── Danger box ── */
.disc-danger {
  background: var(--bg-danger);
  border: 1px solid var(--danger-bd);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.4rem;
  margin-top: 1rem;
}

.disc-danger p {
  font-size: .86rem;
  color: var(--danger-tx);
  margin: 0;
  line-height: 1.6;
}

/* ── Acceptance box ── */
.disc-accept {
  background: var(--green-bg);
  border: 2px solid var(--green-bd);
  border-radius: var(--r-xl);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  text-align: center;
}

.disc-accept-icon { font-size: 2.2rem; margin-bottom: .75rem; }

.disc-accept-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.disc-accept-body {
  font-size: .88rem;
  color: var(--tx-secondary);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Updated date ── */
.disc-updated {
  text-align: center;
  font-size: .78rem;
  color: var(--tx-faint);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.disc-updated::before,
.disc-updated::after {
  content: '';
  display: block;
  height: 1px;
  width: 60px;
  background: var(--bd);
}

/* ── Back button ── */
.disc-back-wrap {
  text-align: center;
  margin-top: 3rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--ac);
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  padding: .8rem 1.8rem;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(212, 98, 42, .35);
}

.btn-back:hover {
  background: var(--ac-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 98, 42, .45);
  text-decoration: none;
  color: #fff;
}

.btn-back svg { width: 16px; height: 16px; }

/* ── Footer ── */
.site-footer {
  background: var(--tx-primary);
  color: rgba(255,255,255,.55);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  align-items: center;
}

.footer-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .72rem;
  color: rgba(255,255,255,.25);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .disc-section { padding: 1.5rem 1.25rem; }
  .disc-accept  { padding: 1.5rem 1.25rem; }
  .disc-hero    { padding: 2.5rem 0 2rem; }
  .footer-inner { flex-direction: column; gap: 1rem; }
}