/* Theo Luật site. Colours and type from theoluat-business/brand (tokens/tokens.css); keep them in step. */

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/fonts/be-vietnam-pro-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(/fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/fonts/source-serif-4-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #17305c;
  --paper: #f6f7f9;
  --white: #ffffff;
  --slate: #1e2430;
  --grey: #5b6474;
  --steel: #4a6aa5;
  --pale: #c9d3e5;
  --mist: #e9edf4;
  --line: #dde1e8;
  --seal: #a8261b;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
  --radius: 0.5rem;
  --wide: 72rem;
  --read: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--slate); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1.08; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem); line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; line-height: 1.35; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1rem; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--white); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* header and footer */
.top { max-width: var(--wide); margin: 0 auto; padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 2rem; }
.top .brand img { display: block; height: 32px; width: auto; }
.top nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.top nav a, .top .lang { color: var(--slate); text-decoration: none; }
.top nav a:hover, .top .lang:hover { color: var(--ink); text-decoration: underline; }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
@media (max-width: 760px) { .top nav { display: none; } .top { gap: 1rem; } }

.foot { max-width: var(--wide); margin: 5rem auto 0; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; color: var(--grey); font-size: 0.9rem; }
.foot img { grid-row: span 2; }
.foot p { margin: 0; max-width: var(--read); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot a { color: var(--grey); }

/* buttons */
.button { display: inline-block; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 500;
  padding: 0.8rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--ink); }
.button:hover { background: #10244a; }
.button.small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button.quiet:hover { background: var(--mist); }

/* landing */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: start; padding: 3.5rem 0 4.5rem; }
.hero .lead { font-size: 1.2rem; color: var(--slate); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .note { margin-top: 1rem; color: var(--grey); font-size: 0.92rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2rem; } }

/* the lookup: one question, three dates, the clause in force on each */
.lookup { background: var(--white); border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.5rem 1.5rem 1.25rem; }
.lookup .ask { font-weight: 500; color: var(--slate); margin: 0 0 1.25rem; }
.lookup .ask span { color: var(--grey); font-weight: 400; }
.dates { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 1.5rem; padding: 0; list-style: none; }
.dates::before { content: ''; position: absolute; left: 0.45rem; right: 0.45rem; top: 0.45rem; height: 1px; background: var(--line); }
.dates button { position: relative; display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0 0 0 0;
  font: 500 0.9rem/1.3 var(--sans); color: var(--grey); cursor: pointer; }
.dates li:last-child button { text-align: right; }
.dates li:nth-child(2) button { text-align: center; }
.dates button::before { content: ''; display: block; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--white);
  border: 2px solid var(--pale); margin-bottom: 0.55rem; }
.dates li:nth-child(2) button::before { margin-left: auto; margin-right: auto; }
.dates li:last-child button::before { margin-left: auto; }
.dates button small { display: block; font-weight: 400; font-size: 0.8rem; }
.dates button[aria-pressed='true'] { color: var(--ink); }
.dates button[aria-pressed='true']::before { background: var(--ink); border-color: var(--ink); }
.answer { border-top: 1px solid var(--line); padding-top: 1.25rem; min-height: 15.5rem; }
.answer .fine { font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.15; color: var(--ink); margin: 0 0 0.25rem; }
.answer .cite { font-weight: 500; margin: 0 0 0.9rem; }
.answer blockquote { margin: 0 0 0.9rem; padding: 0.75rem 1rem; background: var(--paper); border-radius: var(--radius);
  font: 400 0.98rem/1.6 var(--serif); color: var(--slate); }
.answer .valid { color: var(--grey); font-size: 0.88rem; margin: 0; }
.answer [hidden] { display: none; }
.lookup .src { margin: 1rem 0 0; font-size: 0.82rem; color: var(--grey); }

/* sections */
.section { padding: 4rem 0; border-top: 1px solid var(--line); }
.section > .wrap > p, .section .intro { max-width: var(--read); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 3rem; margin: 2rem 0 0; padding: 0; list-style: none; max-width: 60rem; }
.points li { padding: 1rem 0; border-top: 1px solid var(--line); }
.points strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }
.facts { margin-top: 2rem; color: var(--grey); max-width: var(--read); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--read); }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.25rem 2.75rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  border: 1px solid var(--pale); color: var(--ink); font: 600 0.9rem/1.7rem var(--sans); text-align: center; }
.connect { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
@media (max-width: 820px) { .connect { grid-template-columns: 1fr; gap: 1rem; } }
code, pre { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.88rem; }
pre { background: var(--ink); color: var(--white); padding: 1rem 1.1rem; border-radius: var(--radius); overflow-x: auto; margin: 0.5rem 0 1rem; line-height: 1.55; }
p code, li code { background: var(--mist); padding: 0.1rem 0.35rem; border-radius: 4px; color: var(--ink); }

.prices { width: 100%; max-width: 52rem; border-collapse: collapse; margin: 1.5rem 0 1rem; }
.prices th, .prices td { text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices thead th { font-size: 0.88rem; font-weight: 500; color: var(--grey); white-space: nowrap; }
.prices tbody th { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-weight: 600; white-space: nowrap; }
.prices td.num { white-space: nowrap; }
.prices .price { font-weight: 600; color: var(--slate); }
@media (max-width: 600px) { .prices thead { display: none; } .prices tr { display: grid; grid-template-columns: 1fr 1fr; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .prices th, .prices td { border: 0; padding: 0.15rem 0; } .prices tbody th { grid-column: 1 / -1; } .prices td.who { grid-column: 1 / -1; color: var(--grey); } }

.faq { max-width: var(--read); }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style-position: outside; }
.faq details p { margin: 0.75rem 0 0; }

/* legal pages */
.doc { max-width: var(--read); margin: 0 auto; padding: 2.5rem 1.25rem 0; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.doc .meta { color: var(--grey); font-size: 0.95rem; margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.45rem; margin-top: 2.75rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.doc table { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1.5rem; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 500; color: var(--grey); }

.notfound { max-width: var(--read); margin: 0 auto; padding: 5rem 1.25rem 0; }

/* wide tables scroll inside the page on phones instead of widening it */
.table-scroll { overflow-x: auto; margin: 0.5rem 0 1.5rem; }
.table-scroll table { margin: 0; min-width: 36rem; }
.doc pre { white-space: pre; }
