/* ISLA Legal Docs — Shared Stylesheet */
/* Ckrit Labs Ltd. Dark theme matching the app. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #06060C;
  --bg-elevated: #0E0E18;
  --text: #EAEAF0;
  --text-muted: rgba(234, 234, 240, 0.6);
  --text-subtle: rgba(234, 234, 240, 0.4);
  --border: rgba(234, 234, 240, 0.08);
  --pink: #FF2A6D;
  --cyan: #00E8F0;
  --violet: #9B30FF;
  --max-width: 720px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  padding: 0 24px;
}

/* Header ----------------------------------------- */

.header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--pink);
}

.header h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.header .subtitle {
  font-size: 17px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--text-subtle);
}

.header .meta span strong {
  color: var(--text-muted);
  font-weight: 500;
}

/* Plain English summary -------------------------- */

.summary {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 24px 28px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.summary strong {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}

/* Body content ----------------------------------- */

.content {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-bottom: 96px;
}

.content h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

.content p {
  margin-bottom: 18px;
  color: var(--text);
}

.content ul {
  margin: 18px 0 24px;
  padding-left: 0;
  list-style: none;
}

.content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: var(--pink);
}

.content a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 232, 240, 0.3);
  transition: border-color 0.2s ease;
}

.content a:hover {
  border-bottom-color: var(--cyan);
}

.content strong {
  color: var(--text);
  font-weight: 600;
}

.content em {
  color: var(--text-muted);
  font-style: italic;
}

/* Footer ----------------------------------------- */

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-subtle);
  text-align: center;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 12px;
}

.footer a:hover {
  color: var(--pink);
}

.footer .company {
  margin-top: 16px;
  color: var(--text-subtle);
  font-size: 12px;
}

/* Responsive ------------------------------------- */

@media (max-width: 640px) {
  body {
    padding: 0 20px;
    font-size: 15px;
  }

  .header {
    padding: 32px 0 24px;
  }

  .header h1 {
    font-size: 28px;
  }

  .header .meta {
    gap: 16px;
    font-size: 12px;
  }

  .summary {
    padding: 20px 22px;
    font-size: 14px;
  }

  .content h2 {
    font-size: 20px;
    margin: 44px 0 16px;
  }

  .content h3 {
    font-size: 16px;
  }
}

/* Selection -------------------------------------- */

::selection {
  background: var(--pink);
  color: var(--bg);
}
