/*
  Legal Zems restoration style guide: Archive-faithful legal education portal.
  Preserve the original white canvas, black bands, Bitter/Yeseva typographic contrast,
  navy-and-gold seal, and restrained editorial spacing. Do not introduce a new design language.
*/
:root {
  --ink: #1b1b1b;
  --copy: #5e5e5e;
  --paper: #ffffff;
  --quiet: #f7f7f6;
  --line: #dedede;
  --seal: #292b3c;
  --gold: #b8933f;
  --black: #000000;
  --light-ink: #e2e2e2;
  --content-width: 1160px;
  --reading-width: 860px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Bitter, Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
button, input { font: inherit; }

.skip-link {
  position: absolute;
  z-index: 50;
  left: 1rem;
  top: -4rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--black);
}
.skip-link:focus { top: 1rem; }

.utility-bar {
  margin: 0 28px;
  padding: 4px 16px;
  color: var(--light-ink);
  background: var(--black);
  font-family: Bitter, Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.214em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.site-header { padding-top: 56px; }
.header-inner { width: min(100% - 48px, var(--content-width)); margin: 0 auto; }
.brand-row { display: flex; justify-content: center; align-items: center; }
.wordmark {
  display: inline-block;
  color: var(--ink);
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.375rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark:hover { color: #303030; }

.site-nav { margin-top: 26px; padding-bottom: 22px; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 31px; padding: 0; margin: 0; list-style: none; }
.site-nav a {
  color: var(--ink);
  font-family: Bitter, Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.214em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; }

.contact-marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid #f3f3f3;
  border-bottom: 1px solid #f3f3f3;
  padding: 23px 0;
  white-space: nowrap;
}
.contact-track {
  display: inline-flex;
  min-width: max-content;
  gap: 44px;
  align-items: center;
  padding-left: 24px;
  font-family: Bitter, Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
}
.contact-item { text-decoration: none; }
.contact-item:hover { color: var(--gold); }
.contact-symbol { display: inline-block; margin-right: 0.28em; color: var(--ink); font-family: Georgia, serif; }

main { overflow: hidden; }
.section { padding: 72px 24px; }
.section--quiet { background: var(--quiet); }
.section--dark { color: var(--light-ink); background: #161616; }
.shell { width: min(100%, var(--content-width)); margin: 0 auto; }
.reading-shell { width: min(100%, var(--reading-width)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 20px;
  color: var(--copy);
  font-family: Bitter, Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.214em;
  text-transform: uppercase;
}
.section-title, .page-title {
  margin: 0;
  color: var(--ink);
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
.section-title--white { color: #fff; }
.rule {
  width: 70px;
  height: 3px;
  margin: 22px 0 34px;
  border: 0;
  background: var(--ink);
}
.rule--gold { background: var(--gold); }

.intro { padding: 68px 24px 80px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: clamp(40px, 7vw, 110px); align-items: center; width: min(100%, var(--content-width)); margin: 0 auto; }
.intro-copy { color: var(--copy); font-family: Helvetica, Arial, sans-serif; font-size: 16px; line-height: 2; text-align: center; }
.intro-copy p { margin: 0 0 22px; }
.intro-copy p:last-child { margin-bottom: 0; }
.intro-photo { position: relative; }
.intro-photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 3px solid var(--gold); }
.intro-photo img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; }

.practice { padding-top: 90px; padding-bottom: 90px; background: #171717; }
.practice-card { display: grid; grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr); min-height: 385px; overflow: hidden; background: #242424; }
.practice-image { min-height: 280px; background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url("images/legal-office-hero.jpg") center / cover no-repeat; }
.practice-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 76px); color: var(--light-ink); }
.practice-copy h3 { margin: 0 0 22px; color: #fff; font-family: "Yeseva One", Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 400; }
.practice-copy p { max-width: 650px; margin: 0; font-size: 16px; line-height: 1.85; }

.academy-header { max-width: 690px; }
.academy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 42px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.academy-card { display: flex; min-height: 210px; flex-direction: column; justify-content: space-between; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-decoration: none; transition: background-color 160ms ease-out, color 160ms ease-out; }
.academy-card:hover { color: #fff; background: var(--seal); }
.academy-number { color: var(--gold); font-family: "Yeseva One", Georgia, serif; font-size: 1.15rem; }
.academy-card h3 { max-width: 180px; margin: 36px 0 0; font-family: Bitter, Georgia, serif; font-size: 1.25rem; line-height: 1.35; }
.academy-card span:last-child { margin-top: 1rem; font-size: 0.86rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.subscribe { padding: 84px 24px; color: #fff; background: var(--seal); }
.subscribe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 48px; align-items: end; width: min(100%, var(--content-width)); margin: 0 auto; }
.subscribe .eyebrow { color: #cfcfd6; }
.subscribe p { max-width: 450px; margin: 22px 0 0; color: #efeff2; font-family: Helvetica, Arial, sans-serif; font-size: 1.05rem; }
.subscribe-form { display: flex; gap: 12px; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,.75); }
.subscribe-form input { min-width: 0; flex: 1; padding: 14px 0; border: 0; color: #fff; outline: none; background: transparent; }
.subscribe-form input::placeholder { color: #d5d5dc; }
.subscribe-form button { padding: 0 0 0 20px; border: 0; color: #fff; background: transparent; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; cursor: pointer; }
.subscribe-form button:hover { color: var(--gold); }

.page-hero { position: relative; min-height: 265px; padding: 84px 24px 64px; color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.45)), url("images/legal-office-hero.jpg") center 53% / cover no-repeat; }
.page-hero--course { background-image: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.35)), url("images/legal-contract-discussion.jpg"); }
.page-hero--competition { background-image: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.35)), url("images/law-competition-poster.jpg"); background-position: center 22%; }
.page-hero .shell { position: relative; }
.breadcrumb { margin: 0 0 16px; color: rgba(255,255,255,.85); font-family: Helvetica, Arial, sans-serif; font-size: .9rem; }
.breadcrumb a { color: inherit; }
.page-hero .page-title { color: #fff; }

.plain-content { max-width: 860px; margin: 0 auto; color: var(--copy); font-family: Helvetica, Arial, sans-serif; font-size: 16px; line-height: 2; }
.plain-content p { margin: 0 0 22px; }
.plain-content strong { color: var(--ink); }
.archive-note { padding: 20px 24px; border-left: 3px solid var(--gold); color: var(--copy); background: #faf9f5; font-family: Helvetica, Arial, sans-serif; }

.content-card { padding: clamp(26px, 5vw, 55px); background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.07); }
.content-card + .content-card { margin-top: 28px; }
.content-card h2 { margin: 0; color: var(--ink); font-family: "Yeseva One", Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.25; }
.content-card h3 { margin: 32px 0 12px; color: var(--ink); font-family: Bitter, Georgia, serif; font-size: 1.1rem; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; }
.content-card p, .content-card li { color: var(--copy); font-family: Helvetica, Arial, sans-serif; line-height: 1.9; }
.content-card p { margin: 14px 0 0; }
.content-card ul { margin: 12px 0 0; padding-left: 1.2rem; }
.button-link { display: inline-block; margin-top: 28px; padding: 13px 18px; color: #fff; background: var(--ink); font-family: Bitter, Georgia, serif; font-size: .83rem; font-weight: 700; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; transition: background-color 160ms ease-out; }
.button-link:hover { background: var(--gold); }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .62fr); gap: clamp(30px, 5vw, 68px); align-items: start; }
.course-aside { position: sticky; top: 20px; }
.course-aside img { width: 100%; box-shadow: 0 9px 26px rgba(0,0,0,.15); }
.moderator { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 24px; }
.moderator img { width: 180px; aspect-ratio: 1 / 1.25; object-fit: cover; }
.moderator h3 { margin: 0; }
.moderator p { margin-top: 8px; }

.competition-list { margin: 0; padding: 0; list-style: none; }
.competition-list li { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.competition-list li:last-child { border-bottom: 1px solid var(--line); }
.competition-index { color: var(--gold); font-family: "Yeseva One", Georgia, serif; font-size: 1.7rem; }
.competition-list h2 { margin: 0; color: var(--ink); font-family: "Yeseva One", Georgia, serif; font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 400; line-height: 1.3; }
.competition-list p { margin: 10px 0 0; color: var(--copy); font-family: Helvetica, Arial, sans-serif; }
.text-link { color: var(--ink); font-family: Bitter, Georgia, serif; font-size: .85rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.text-link:hover { color: var(--gold); }

.disclaimer { padding: 72px 24px; border-top: 1px solid var(--line); background: #f8f8f8; }
.disclaimer p { max-width: 970px; margin: 0; color: var(--copy); font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.85; }

.site-footer { padding: 34px 24px; color: #dcdcdc; background: #161616; }
.footer-inner { display: flex; width: min(100%, var(--content-width)); gap: 24px; align-items: center; justify-content: space-between; margin: 0 auto; }
.copyright { margin: 0; font-family: Helvetica, Arial, sans-serif; font-size: 12px; }
.socials { display: flex; gap: 17px; padding: 0; margin: 0; list-style: none; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #777; border-radius: 50%; color: #fff; font-family: Arial, sans-serif; font-size: .72rem; font-weight: 700; text-decoration: none; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }

.cookie-notice { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: min(100% - 48px, 460px); padding: 22px; color: #303030; background: #fff; box-shadow: 0 4px 12px rgba(117,117,117,.4); font-family: Helvetica, Arial, sans-serif; }
.cookie-notice h2 { margin: 0; font-family: Bitter, Georgia, serif; font-size: 1rem; }
.cookie-notice p { margin: 9px 0 17px; color: #595959; font-size: .85rem; line-height: 1.55; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 12px; }
.cookie-actions button { border: 0; padding: 9px 14px; color: #fff; background: #404040; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cookie-actions button:hover { background: #595959; }
.cookie-actions .decline { color: #303030; background: transparent; }
.cookie-actions .decline:hover { color: var(--gold); background: transparent; }

@media (max-width: 900px) {
  .academy-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid, .practice-card, .subscribe-grid, .course-layout { grid-template-columns: 1fr; }
  .intro-copy { order: 2; }
  .intro-photo { max-width: 620px; }
  .intro-photo::after { inset: 12px -12px -12px 12px; }
  .practice-image { min-height: 240px; }
  .course-aside { position: static; max-width: 420px; }
}

@media (max-width: 680px) {
  .utility-bar { margin: 0 8px; font-size: 10px; }
  .site-header { padding-top: 34px; }
  .header-inner { width: min(100% - 32px, var(--content-width)); }
  .wordmark { font-size: 2rem; }
  .site-nav { display: none; }
  .nav-toggle { display: block; margin: 24px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .nav-toggle summary { padding: 11px 0; cursor: pointer; font-size: .82rem; font-weight: 700; letter-spacing: .15em; list-style: none; text-align: center; text-transform: uppercase; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle ul { padding: 4px 0 17px; margin: 0; list-style: none; text-align: center; }
  .nav-toggle li + li { margin-top: 11px; }
  .nav-toggle a { font-size: .85rem; letter-spacing: .12em; }
  .contact-marquee { padding: 17px 0; }
  .contact-track { gap: 28px; font-size: 1rem; }
  .section, .intro, .disclaimer { padding-right: 18px; padding-left: 18px; }
  .section { padding-top: 54px; padding-bottom: 54px; }
  .intro { padding-top: 52px; padding-bottom: 62px; }
  .intro-copy { font-size: 15px; line-height: 1.8; }
  .practice { padding-top: 60px; padding-bottom: 60px; }
  .practice-copy { padding: 30px 24px 36px; }
  .academy-grid { grid-template-columns: 1fr; }
  .academy-card { min-height: 165px; }
  .subscribe { padding: 60px 18px; }
  .subscribe-grid { gap: 30px; }
  .subscribe-form { display: block; border-bottom: 0; }
  .subscribe-form input { width: 100%; border-bottom: 1px solid rgba(255,255,255,.75); }
  .subscribe-form button { margin-top: 16px; padding: 12px 16px; background: #171717; }
  .page-hero { min-height: 225px; padding: 55px 18px 45px; }
  .content-card { padding: 27px 22px; }
  .moderator { grid-template-columns: 1fr; gap: 20px; }
  .moderator img { width: 160px; }
  .competition-list li { grid-template-columns: 42px minmax(0, 1fr); gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cookie-notice { right: 16px; bottom: 16px; width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .academy-card { transition: none; } }
