/* Famito legal pages — brand palette lifted from src/theme/index.ts. */
:root {
  --plum: #2e1a47;
  --plum-light: #3e2560;
  --cream: #fdf0e7;
  --coral: #f2764b;
  --sun: #ffc24d;
  --ink: #241436;
  --muted: #6b5f79;
  --line: #e8dcd2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

header {
  background: linear-gradient(160deg, var(--plum-light), var(--plum));
  color: var(--cream);
  padding: 28px 20px 56px;
}

.bar {
  max-width: 760px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 26px;
  font-weight: 800;
  color: var(--sun);
  text-decoration: none;
  letter-spacing: -0.4px;
}
.wordmark span {
  color: var(--coral);
}

nav a {
  color: var(--cream);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  opacity: 0.82;
  font-size: 15px;
}
nav a:hover,
nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
}

header h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.6px;
}

header p.lede {
  max-width: 760px;
  margin: 12px auto 0;
  color: #d5c8e2;
  font-size: 17px;
}

main {
  max-width: 760px;
  margin: -32px auto 0;
  padding: 0 20px 80px;
}

.card {
  background: #fff;
  border-radius: 22px;
  padding: 32px clamp(20px, 5vw, 40px);
  box-shadow: 0 12px 34px rgba(46, 26, 71, 0.09);
}

h2 {
  font-size: 23px;
  margin: 38px 0 10px;
  letter-spacing: -0.3px;
}
h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 18px;
  margin: 24px 0 6px;
}

p,
li {
  color: #35263f;
}

ul {
  padding-left: 22px;
}
li {
  margin: 7px 0;
}

a {
  color: #b8452a;
}

.updated {
  display: inline-block;
  background: #f6efe9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
}

.callout {
  background: #f8f3ef;
  border-left: 4px solid var(--coral);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout p {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15.5px;
  display: block;
  overflow-x: auto;
}
th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 560px) {
  .tiles {
    grid-template-columns: 1fr;
  }
}

.tile {
  display: block;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(46, 26, 71, 0.08);
  transition: transform 0.15s ease;
}
.tile:hover {
  transform: translateY(-2px);
}
.tile strong {
  display: block;
  font-size: 19px;
  margin-bottom: 4px;
}
.tile span {
  color: var(--muted);
  font-size: 15px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}
footer a {
  color: var(--muted);
  margin: 0 10px;
}
