/* Aven legal — editorial reading layout */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFFFFF;
  color: #0A0A0A;
  line-height: 1.6;
  font-size: 16px;
  padding: 48px 24px 80px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
}

header {
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 24px;
}

header a.mark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 28px;
  text-decoration: none;
  color: #0A0A0A;
  letter-spacing: -0.5px;
}

header a.mark .dot { color: #E11D48; }

nav {
  margin-top: 12px;
  font-size: 13px;
  color: #6B6B6F;
}
nav a {
  color: #6B6B6F;
  text-decoration: none;
  margin-right: 14px;
}
nav a.active { color: #0A0A0A; font-weight: 500; }
nav a:hover { color: #0A0A0A; }

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1.1;
}

.meta {
  font-size: 13px;
  color: #6B6B6F;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #0A0A0A;
}

p, li {
  margin-bottom: 12px;
  color: #2B2B2B;
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

a {
  color: #E11D48;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

strong { font-weight: 700; color: #0A0A0A; }
em { font-style: italic; }

code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  background: rgba(225, 29, 72, 0.08);
  color: #E11D48;
  padding: 1px 6px;
  border-radius: 4px;
}

.notice {
  margin: 24px 0 32px;
  padding: 14px 18px;
  background: #FFF6F8;
  border-left: 3px solid #E11D48;
  border-radius: 4px;
  font-size: 14px;
  color: #4A1828;
  line-height: 1.55;
}
.notice strong { color: #0A0A0A; }

html[dir="rtl"] .notice {
  border-left: none;
  border-right: 3px solid #E11D48;
}

table {
  width: 100%;
  margin: 12px 0 20px;
  border-collapse: collapse;
  font-size: 14px;
}
table th, table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}
html[dir="rtl"] table th,
html[dir="rtl"] table td { text-align: right; }
table th {
  font-weight: 700;
  color: #0A0A0A;
  background: #FAFAFA;
}

footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  color: #6B6B6F;
}

@media (prefers-color-scheme: dark) {
  body { background: #0B0B0C; color: #FAFAFA; }
  header { border-color: rgba(255, 255, 255, 0.08); }
  header a.mark { color: #FAFAFA; }
  h2, h3, strong { color: #FAFAFA; }
  p, li { color: #C8C8CD; }
  nav a { color: #A1A1A6; }
  nav a.active { color: #FAFAFA; }
  footer { border-color: rgba(255, 255, 255, 0.08); color: #A1A1A6; }
  code { background: rgba(244, 63, 94, 0.16); color: #FB7185; }
  .notice { background: rgba(244, 63, 94, 0.08); color: #F5D7DC; }
  .notice strong { color: #FAFAFA; }
  table th { background: rgba(255, 255, 255, 0.04); color: #FAFAFA; }
  table th, table td { border-color: rgba(255, 255, 255, 0.08); }
}
