:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --primary: #0a2540;
  --accent: #1a6ef5;
  --accent2: #e8f0fe;
  --muted: #6b7280;
  --border: #e2ddd6;
  --text: #1c1c1e;
  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

/* ── HERO HEADER ── */
header {
  background: var(--primary);
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
}
header::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(26, 110, 245, 0.35) 0%,
    transparent 70%
  );
  pointer-events: none;
}
header::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(26, 110, 245, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 32px 56px;
  position: relative;
  z-index: 1;
}
.site-name {
  font-family: var(--heading-font);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #93b4e8;
  margin-bottom: 18px;
  display: block;
  height: 50px;
  width: 50px;
}
.site-name img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
header h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}
.header-meta {
  font-size: 14px;
  color: #93b4e8;
  letter-spacing: 0.5px;
}

/* ── LAYOUT ── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 32px 96px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
}

/* ── STICKY TOC ── */
.toc {
  position: sticky;
  top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  font-size: 13px;
}
.toc-title {
  font-family: var(--heading-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.toc ul {
  list-style: none;
}
.toc li + li {
  margin-top: 6px;
}
.toc a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
  display: block;
  padding: 3px 0;
  line-height: 1.4;
}
.toc a:hover {
  color: var(--accent);
}

/* ── CONTENT ── */
.content {
}

section {
  margin-bottom: 48px;
  animation: fadeUp 0.5s ease both;
}
section:nth-child(1) {
  animation-delay: 0.05s;
}
section:nth-child(2) {
  animation-delay: 0.1s;
}
section:nth-child(3) {
  animation-delay: 0.15s;
}
section:nth-child(4) {
  animation-delay: 0.2s;
}
section:nth-child(5) {
  animation-delay: 0.25s;
}
section:nth-child(6) {
  animation-delay: 0.3s;
}
section:nth-child(7) {
  animation-delay: 0.35s;
}
section:nth-child(8) {
  animation-delay: 0.4s;
}
section:nth-child(9) {
  animation-delay: 0.45s;
}
section:nth-child(10) {
  animation-delay: 0.5s;
}
section:nth-child(11) {
  animation-delay: 0.55s;
}
section:nth-child(12) {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

h2 {
  font-family: var(--heading-font);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

h3 {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 24px 0 10px;
}

h4 {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 20px 0 8px;
}

p {
  margin-bottom: 14px;
  color: #374151;
}
p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 10px 0 14px 20px;
  color: #374151;
}
li {
  margin-bottom: 6px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── CALLOUT BOXES ── */
.callout {
  background: var(--accent2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 18px 0;
}
.callout p {
  color: var(--primary);
  margin: 0;
  font-size: 0.93rem;
}

.callout-warn {
  background: #fff8e1;
  border-left-color: #f59e0b;
}
.callout-warn p {
  color: #78350f;
}

/* ── DEFINITION LIST ── */
.def-list {
  margin: 0;
}
.def-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
.def-item:last-child {
  border-bottom: none;
}
.def-term {
  font-weight: 500;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1rem;
}
.def-desc {
  color: #374151;
}

/* ── RIGHTS GRID ── */
.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.right-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.right-card:hover {
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  transform: translateY(-2px);
}
.right-card .icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: block;
}
.right-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.right-card p {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
}

/* ── CONTACT BOX ── */
.contact-box {
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  margin-top: 24px;
}
.contact-box h3 {
  color: #93b4e8;
  font-size: 1rem;
  margin-bottom: 12px;
}
.contact-box p {
  color: #d1dff5;
  font-size: 0.93rem;
}
.contact-box a {
  color: #7db3ff;
  text-decoration: none;
  font-weight: 500;
}
.contact-box a:hover {
  text-decoration: underline;
}

/* ── FOOTER ── */
footer {
  background: var(--primary);
  color: #6b8ab8;
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
}
footer a {
  color: #93b4e8;
  text-decoration: none;
}

/* back home */
.bacTohome {
  position: fixed;
  width: 200px;
  height: 100px;
  top: 60px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding: 10px 10px 10px 40px;
}

.back h4 {
  color: #8dbdff;
  font-size: 16px;
  transform: translateY(6px);
  transition: transform 500ms 0s cubic-bezier(0.2, 0, 0, 1);
  margin: 0;
  font-weight: 600;
}

.back span {
  opacity: 0;
  color: #858ba9;
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  display: inline-block;
  transform: translateY(10px);
  transition: transform 500ms 0s cubic-bezier(0.2, 0, 0, 1),
    opacity 500ms 0s cubic-bezier(0.2, 0, 0, 1);
}

.back div {
  top: 11px;
  left: 0;
  content: "";
  width: 30px;
  height: 30px;
  display: block;
  overflow: hidden;
  position: absolute;
  border-radius: 50%;
  transform: scale(1);
  background-color: #e9e7f2;
  transition: transform 400ms 0s cubic-bezier(0.2, 0, 0, 1.6);
}

.back div::after {
  top: 0;
  left: 0;
  content: "";
  width: 60px;
  height: 30px;
  position: absolute;
  background-position: 0 0;
  background-image: url("https://s3-eu-west-1.amazonaws.com/thomascullen-codepen/back.svg");
  transition: transform 400ms 0s cubic-bezier(0.2, 0, 0, 1);
}

.back:hover h4 {
  color: #e3e8ff;
}

.back:hover h4,
.back:hover span {
  opacity: 1;
  transform: translateY(0);
}

.back:hover div {
  transform: scale(1.1);
  background-color: white;
  box-shadow: 0 2px 10px 0 rgba(185, 182, 198, 0),
    0 1px 3px 0 rgba(175, 172, 189, 0.25);
}

.back:hover div::after {
  transform: translateX(-30px);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .bacTohome {
    display: none !important;
  }
  .page-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px 64px;
  }
  .toc {
    position: static;
  }
  .def-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .rights-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    padding: 48px 20px 40px;
  }
}
