/* RackingZone — company & legal pages: /about/ (.ab-), /contact/ (.ct-), /privacy/ + /terms/ (.lg- shared legal layout).
   Loaded only by those pages. Tokens and shared components come from global.css. */

/* =====================================================================
   About (.ab-)
   ===================================================================== */
.ab-hero { position: relative; padding: 40px 0 72px; background: var(--main); border-bottom: 1px solid var(--line); overflow: hidden; }
.ab-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--teal-soft); opacity: .55; pointer-events: none; }
.ab-hero > .container { position: relative; z-index: 1; }
.ab-hero .rz-breadcrumb { margin-bottom: 1.8rem; }
.ab-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.ab-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; margin: .7rem 0 1.1rem; }
.ab-hero .lead { font-size: 1.1rem; color: var(--muted); }
.ab-hero-media { position: relative; min-height: 470px; }
.ab-photo { position: absolute; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-photo-main { right: 0; top: 0; width: 64%; height: 440px; }
.ab-photo-side { left: 0; bottom: 6px; width: 50%; height: 220px; border: 6px solid var(--main); }
.ab-ledger { position: absolute; left: 6%; top: 34px; display: grid; gap: .1rem; background: var(--ink); color: #fff; border-radius: 14px; padding: .9rem 1.1rem; box-shadow: var(--shadow); min-width: 190px; }
.ab-ledger div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .3rem 0; }
.ab-ledger div + div { border-top: 1px dashed rgba(255, 255, 255, .25); }
.ab-ledger span { font-size: .78rem; color: rgba(255, 255, 255, .7); }
.ab-ledger strong { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #7fd1d1; }
.ab-photo-note { position: absolute; right: 0; bottom: -30px; margin: 0; font-size: .74rem; color: var(--muted); }

.ab-mission { padding: 88px 0; }
.ab-mission .eyebrow { color: #7fd1d1; }
.ab-mission-statement { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 2.7vw, 2.2rem); line-height: 1.22; color: #fff; margin: 1rem 0 0; letter-spacing: -.01em; }
.ab-mission-story { font-size: 1.02rem; line-height: 1.75; color: rgba(255, 255, 255, .78); margin-bottom: 2rem; }
.ab-commit { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ab-commit li { display: flex; gap: 1.1rem; padding: 1.1rem 1.2rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .03); transition: border-color .3s var(--ease), background .3s var(--ease); }
.ab-commit li:hover { border-color: rgba(127, 209, 209, .45); background: rgba(255, 255, 255, .06); }
.ab-commit li > span { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--red); line-height: 1.2; flex: none; }
.ab-commit h3 { font-size: 1.12rem; margin: 0 0 .25rem; }
.ab-commit p { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .72); }

.ab-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.ab-flow::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, #cfc8bf 0 10px, transparent 10px 18px); }
.ab-flow li { position: relative; margin-top: 23px; background: var(--main); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.6rem 1.3rem 1.4rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ab-flow li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ab-flow-n { position: absolute; top: -23px; left: 1.3rem; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--bg); }
.ab-flow li:last-child .ab-flow-n { background: var(--red); }
.ab-flow li > .bi { position: absolute; top: 1rem; right: 1.2rem; font-size: 1.4rem; color: var(--teal); }
.ab-flow h3 { font-size: 1.2rem; margin: 0 0 .45rem; }
.ab-flow p { font-size: .92rem; color: var(--muted); margin: 0; }

.ab-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.ab-fact { display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 12px; background: var(--teal-soft); border: 1px solid rgba(7, 128, 128, .18); }
.ab-fact > .bi { font-size: 1.3rem; color: var(--teal); line-height: 1.3; }
.ab-fact strong { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); margin-bottom: .15rem; }
.ab-fact p { margin: 0; font-size: .88rem; }

.ab-zero { margin-top: 1.8rem; padding: 1.4rem 1.5rem; border-radius: var(--radius-lg); background: var(--bg); border: 2px dashed var(--teal); display: grid; gap: .15rem; }
.ab-zero-label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.ab-zero-value { font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--ink); }
.ab-zero-note { font-size: .88rem; color: var(--muted); }
.ab-revenue { display: grid; gap: 18px; }
.ab-rev { display: flex; gap: 1.1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--main); transition: box-shadow .35s var(--ease), border-color .35s var(--ease); }
.ab-rev:hover { box-shadow: var(--shadow); border-color: transparent; }
.ab-rev h3 { font-size: 1.25rem; margin: .1rem 0 .45rem; }
.ab-rev p { color: var(--muted); font-size: .95rem; margin-bottom: .7rem; }
.ab-rev-never { background: var(--bg); }
.ab-rev-never .check-list li { font-size: .93rem; }
.ab-rev-never .check-list li:last-child { margin-bottom: 0; }

.ab-rules { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.ab-rules li { display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; color: var(--muted); padding: 1rem 0; border-top: 1px solid var(--line); }
.ab-rules li > .bi { color: var(--red); font-size: 1.15rem; line-height: 1.4; }
.ab-rules strong { color: var(--ink); }
.ab-corrections { position: sticky; top: 96px; padding: 1.7rem; border-radius: var(--radius-lg); background: var(--main); border: 1px solid var(--line); border-top: 5px solid var(--red); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.ab-corrections h3 { font-size: 1.45rem; font-weight: 800; margin: .8rem 0 .5rem; }
.ab-corrections p { font-size: .93rem; color: var(--muted); }
.ab-corr-steps { padding-left: 1.2rem; margin: 0 0 1.3rem; font-size: .92rem; }
.ab-corr-steps li { margin-bottom: .45rem; }
.ab-corr-steps a { word-break: break-all; }

.ab-cover { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ab-cover-tile { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem 1.3rem 1.4rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease); }
.ab-cover-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--main); color: var(--text); }
.ab-cover-tile .bi { font-size: 1.5rem; color: var(--teal); margin-bottom: .3rem; transition: transform .3s var(--ease); }
.ab-cover-tile:hover .bi { transform: scale(1.12); }
.ab-cover-tile strong { font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); }
.ab-cover-tile span { font-size: .86rem; color: var(--muted); }

.ab-operator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 2.4rem; border-radius: var(--radius-lg); background: var(--main); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ab-operator h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; margin: .6rem 0 .7rem; }
.ab-operator p { color: var(--muted); margin: 0; }
.ab-operator-actions { display: grid; gap: 12px; }
.ab-route { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; padding: .95rem 1.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: all .3s var(--ease); }
.ab-route:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ab-route-k { font-size: .78rem; color: var(--muted); grid-column: 1; }
.ab-route strong { font-family: var(--font-head); font-size: 1.12rem; grid-column: 1; }
.ab-route .bi { grid-column: 2; grid-row: 1 / span 2; font-size: 1.2rem; transition: transform .25s var(--ease); }
.ab-route:hover .bi { transform: translateX(4px); }
.ab-route:hover .ab-route-k { color: rgba(255, 255, 255, .7); }
.ab-route:first-child { border-color: rgba(244, 93, 72, .4); }

@media (max-width: 991.98px) {
  .ab-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ab-hero-media { min-height: 380px; }
  .ab-photo-main { height: 360px; }
  .ab-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-flow::before { display: none; }
  .ab-facts { grid-template-columns: 1fr; }
  .ab-cover { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-operator { grid-template-columns: 1fr; gap: 24px; }
  .ab-corrections { position: static; }
}
@media (max-width: 767.98px) {
  .ab-hero { padding: 28px 0 56px; }
  .ab-hero-media { min-height: 300px; }
  .ab-photo-main { width: 72%; height: 280px; }
  .ab-photo-side { width: 54%; height: 150px; bottom: 0; }
  .ab-ledger { left: 0; top: 18px; min-width: 160px; padding: .7rem .9rem; }
  .ab-mission { padding: 64px 0; }
  .ab-flow { grid-template-columns: 1fr; }
  .ab-rules { grid-template-columns: 1fr; gap: 0; }
  .ab-operator { padding: 1.5rem; }
}
@media (max-width: 575.98px) {
  .ab-cover { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ab-cover-tile { padding: 1rem; }
  .ab-cover-tile span { font-size: .8rem; }
  .ab-rev { flex-direction: column; gap: .8rem; padding: 1.25rem; }
}

/* =====================================================================
   Contact (.ct-)
   ===================================================================== */
.ct-reply { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.ct-reply > .bi { font-size: 1.5rem; color: var(--teal); line-height: 1.2; }
.ct-reply strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.ct-reply span { display: block; font-size: .86rem; color: var(--muted); margin-top: .2rem; }

.ct-routes-wrap { background: var(--bg); }
.ct-routes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.ct-route { grid-column: span 2; position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--radius-lg); background: var(--main); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.ct-route:nth-child(4), .ct-route:nth-child(5) { grid-column: span 3; }
.ct-route:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ct-route-buy { border: 2px solid var(--red); box-shadow: 0 14px 34px rgba(244, 93, 72, .12); }
.ct-route-tag { position: absolute; top: 1.3rem; right: 1.3rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ct-route-buy .ct-route-tag { color: var(--red-dark); }
.ct-route h2 { font-size: 1.35rem; font-weight: 800; margin: 1rem 0 .5rem; }
.ct-route p { font-size: .93rem; color: var(--muted); margin-bottom: .7rem; }
.ct-route .ct-include { font-size: .82rem; padding: .55rem .75rem; border-radius: 8px; background: var(--bg); }
.ct-include strong { color: var(--ink); }
.ct-route-links { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
.ct-route-links .btn-sm { padding: .5rem .95rem; font-size: .88rem; }
.ct-route-links .link-arrow { font-size: .9rem; white-space: normal; }

.ct-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; }
.ct-form .form-control, .ct-form .custom-select { background-color: var(--main); }
.ct-buyer { padding: 1rem 1rem .25rem; margin: -.25rem 0 1rem; border-radius: 12px; background: var(--main); border: 1px dashed rgba(244, 93, 72, .5); }
.ct-mail h3 { font-size: 1.25rem; margin: .7rem 0 .5rem; word-break: break-all; }
.ct-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ct-facts li { display: flex; gap: .75rem; align-items: flex-start; }
.ct-facts .bi { font-size: 1.15rem; color: var(--teal); line-height: 1.4; }
.ct-facts strong { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ct-facts span { font-weight: 500; color: var(--ink); font-size: .95rem; }

@media (max-width: 991.98px) {
  .ct-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-route, .ct-route:nth-child(4), .ct-route:nth-child(5) { grid-column: span 1; }
  .ct-route:first-child { grid-column: span 2; }
}
@media (max-width: 767.98px) {
  .ct-routes { grid-template-columns: 1fr; gap: 14px; }
  .ct-route, .ct-route:first-child, .ct-route:nth-child(4), .ct-route:nth-child(5) { grid-column: auto; }
  .ct-route { padding: 1.3rem 1.2rem; }
  .ct-form { padding: 1.2rem; }
}

/* =====================================================================
   Legal layout (.lg-) — /privacy/ and /terms/
   ===================================================================== */
.lg-hero { padding-bottom: 48px; }
.lg-hero h1 { margin-bottom: .7rem; }
.lg-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }
.lg-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.lg-meta .bi { color: var(--teal); }
.lg-quick { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.lg-quick .btn-sm { padding: .5rem .95rem; font-size: .86rem; }

.lg-body { padding: 56px 0 96px; }
.lg-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.lg-aside { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.lg-toc summary { list-style: none; cursor: pointer; font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); counter-reset: lgtoc -1; }
.lg-toc li { counter-increment: lgtoc; }
.lg-toc a { display: flex; gap: .55rem; padding: .3rem 0 .3rem .85rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.lg-toc li + li a::before { content: counter(lgtoc); min-width: 1.1rem; font-variant-numeric: tabular-nums; color: #a7a39e; font-size: .78rem; line-height: 1.55; }
.lg-toc a:hover, .lg-toc a.active { color: var(--ink); border-left-color: var(--red); }
.lg-toc a.active { font-weight: 600; }
.lg-aside-card { margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--main); border: 1px solid var(--line); display: grid; gap: .3rem; font-size: .88rem; }
.lg-aside-card strong { font-family: var(--font-head); color: var(--ink); }
.lg-aside-card a { word-break: break-all; }
.lg-aside-card .link-arrow { white-space: normal; font-size: .86rem; }

.lg-doc { max-width: 780px; font-size: 1rem; line-height: 1.75; color: var(--text); }
.lg-doc a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.lg-doc .btn, .lg-doc .link-arrow { text-decoration: none; }
.lg-sec { padding-top: 2.4rem; margin-top: 2.4rem; border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.lg-sec h2 { display: flex; align-items: baseline; gap: .7rem; font-size: 1.6rem; font-weight: 800; margin: 0 0 1rem; }
.lg-num { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .4rem; border-radius: 8px; background: var(--ink); color: #fff; font-size: .95rem; transform: translateY(-3px); }
.lg-sec-key .lg-num { background: var(--red); }
.lg-sec h3 { font-size: 1.18rem; margin: 1.7rem 0 .55rem; scroll-margin-top: 92px; }
.lg-doc ul, .lg-doc ol { padding-left: 1.25rem; margin-bottom: 1.1rem; }
.lg-doc li { margin-bottom: .45rem; }
.lg-doc li::marker { color: var(--teal); }
.lg-doc p { margin-bottom: 1rem; }
.lg-caps { font-size: .95rem; }

.lg-summary { padding: 1.6rem 1.7rem; border-radius: var(--radius-lg); background: var(--ink); color: rgba(255, 255, 255, .85); scroll-margin-top: 92px; }
.lg-summary h2 { color: #fff; font-size: 1.35rem; font-weight: 800; margin: 0 0 1rem; }
.lg-summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.lg-summary li { display: flex; gap: .8rem; margin: 0; font-size: .95rem; line-height: 1.55; }
.lg-summary li > .bi { color: #7fd1d1; font-size: 1.1rem; line-height: 1.4; flex: none; }
.lg-summary a { color: #fff; }
.lg-summary a:hover { color: #7fd1d1; }
.lg-summary strong { color: #fff; }
.lg-summary + .lg-sec { border-top: 0; margin-top: .5rem; }

.lg-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--main); overflow: hidden; margin: 1.2rem 0 .5rem; }
.lg-table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.55; }
.lg-table caption { caption-side: top; padding: .8rem 1rem; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.lg-table th, .lg-table td { padding: .85rem 1rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.lg-table thead th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; white-space: nowrap; border-bottom: 0; }
.lg-table tbody th { width: 24%; font-weight: 600; color: var(--ink); }
.lg-table tbody td:last-child { width: 36%; }
.lg-table tbody tr:last-child th, .lg-table tbody tr:last-child td { border-bottom: 0; }
.lg-table tbody tr:nth-child(even) { background: #fbf9f7; }
.lg-yes, .lg-no { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .12rem .45rem; border-radius: 5px; margin-right: .3rem; }
.lg-yes { background: var(--red-soft); color: #b23a27; }
.lg-no { background: var(--teal-soft); color: var(--teal); }

.lg-callout { display: flex; gap: .7rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 12px; background: var(--red-soft); border: 1px solid rgba(244, 93, 72, .3); font-size: .95rem; }
.lg-callout > .bi { color: var(--red); font-size: 1.15rem; line-height: 1.45; }
.lg-callout a { font-weight: 600; }

.lg-effect { margin: 1.3rem 0; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--bg); border-left: 4px solid var(--red); }
.lg-effect h3 { margin-top: 0; font-size: 1.1rem; }
.lg-effect ul { margin-bottom: 0; }

.lg-rights { margin: 1.2rem 0 1.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lg-rights > div { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--main); }
.lg-rights dt { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); margin-bottom: .25rem; }
.lg-rights dd { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }

.lg-gpc { display: flex; gap: .7rem; align-items: center; padding: .85rem 1.1rem; border-radius: 12px; background: var(--main); border: 1px solid var(--line); font-size: .92rem; }
.lg-gpc > .bi { font-size: 1.2rem; color: var(--muted); }
.lg-gpc.is-on { background: var(--teal-soft); border-color: rgba(7, 128, 128, .3); }
.lg-gpc.is-on > .bi { color: var(--teal); }

.lg-cols { columns: 2; column-gap: 2rem; }
.lg-cols li { break-inside: avoid; }
.lg-updated { margin: 1.6rem 0 0; font-size: .85rem; color: var(--muted); }

/* Privacy request form card */
.lg-form-card { margin-top: 1.8rem; padding: 1.7rem; border-radius: var(--radius-lg); background: var(--main); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 92px; line-height: 1.5; }
.lg-form-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3rem; }
.lg-form-head h3 { margin: 0 0 .2rem; font-size: 1.3rem; font-weight: 800; }
.lg-form-head p { margin: 0; font-size: .9rem; color: var(--muted); }
.lg-form-card a { text-decoration: underline; }
.lg-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; border: 0; padding: 0; }
.lg-types legend, .lg-legend-sm { font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.lg-types legend { grid-column: 1 / -1; }
.lg-type { position: relative; margin: 0; cursor: pointer; }
.lg-type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lg-type span { display: block; height: 100%; padding: .75rem .9rem .75rem 2.3rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); font-size: .8rem; font-weight: 400; color: var(--muted); line-height: 1.4; transition: border-color .2s var(--ease), background .2s var(--ease); position: relative; }
.lg-type span::before { content: ""; position: absolute; left: .85rem; top: .95rem; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #bbb; background: #fff; transition: all .2s var(--ease); }
.lg-type strong { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: .1rem; }
.lg-type:hover span { border-color: rgba(7, 128, 128, .45); }
.lg-type input:checked + span { border-color: var(--teal); background: var(--teal-soft); }
.lg-type input:checked + span::before { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.lg-type input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Screen < lg: table of contents becomes a collapsible box above the text */
@media (max-width: 991.98px) {
  .lg-layout { grid-template-columns: 1fr; gap: 28px; }
  .lg-aside { position: static; max-height: none; overflow: visible; padding: 0; }
  .lg-toc { border: 1px solid var(--line); border-radius: 12px; background: var(--main); padding: .9rem 1.1rem; }
  .lg-toc summary { margin: 0; display: flex; align-items: center; justify-content: space-between; }
  .lg-toc summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .9rem; transition: transform .25s var(--ease); }
  .lg-toc[open] summary::after { transform: rotate(180deg); }
  .lg-toc[open] summary { margin-bottom: .7rem; }
  .lg-toc ol { columns: 2; column-gap: 1.5rem; }
  .lg-toc li { break-inside: avoid; }
  .lg-aside-card { display: none; }
  .lg-doc { max-width: none; }
}
@media (min-width: 992px) {
  .lg-toc summary { pointer-events: none; }
}
@media (max-width: 767.98px) {
  .lg-body { padding: 32px 0 64px; }
  .lg-sec { padding-top: 1.8rem; margin-top: 1.8rem; }
  .lg-sec h2 { font-size: 1.35rem; }
  .lg-toc ol { columns: 1; }
  .lg-summary { padding: 1.3rem 1.2rem; }
  .lg-rights { grid-template-columns: 1fr; }
  .lg-cols { columns: 1; }
  .lg-form-card { padding: 1.2rem; margin-left: -4px; margin-right: -4px; }
  .lg-form-head .icon-tile { display: none; }
  .lg-quick .btn { white-space: normal; text-align: left; }
  /* Notice table → stacked cards */
  .lg-table thead { display: none; }
  .lg-table caption { display: block; width: auto; }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table th, .lg-table td { display: block; width: auto !important; }
  .lg-table tbody tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .lg-table tbody tr:last-child { border-bottom: 0; }
  .lg-table tbody th, .lg-table td { padding: 0; border: 0; }
  .lg-table tbody th { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: .35rem; }
  .lg-table td + td { margin-top: .45rem; }
  .lg-table td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }
}

@media print {
  .site-header, .topbar, .site-footer, .mobile-cta, .to-top, .scroll-progress, .lg-aside, .lg-quick, .lg-form-card { display: none !important; }
  .lg-layout { display: block; }
  .lg-summary { background: none; color: inherit; border: 1px solid #999; }
  .lg-summary h2, .lg-summary a, .lg-summary strong { color: inherit; }
}
