:root {
    --ink: #173f35;
    --ink-deep: #0d2d27;
    --paper: #f7f3e9;
    --paper-bright: #fffdf8;
    --cream: #ede4d1;
    --sun: #f1b845;
    --coral: #aa452f;
    --mint: #a9d4bd;
    --sky: #9bc5d3;
    --muted: #5f6c66;
    --line: rgba(23, 63, 53, 0.16);
    --shadow: 0 18px 48px rgba(13, 45, 39, 0.11);
    --radius: 24px;
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-deep);
    background: var(--paper-bright);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.18em;
}

button,
input,
select {
    font: inherit;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    color: white;
    background: var(--ink-deep);
    border-radius: 0.6rem;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.narrow {
    width: min(780px, 100%);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    color: white;
    background: rgba(13, 45, 39, 0.96);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1;
}

.brand small {
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.7rem);
}

.primary-nav a {
    color: rgba(255, 255, 255, 0.83);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--sun);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.76rem 1.2rem;
    border: 2px solid var(--ink);
    color: white;
    background: var(--ink);
    border-radius: 999px;
    box-shadow: none;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    box-shadow: 0 10px 22px rgba(13, 45, 39, 0.16);
    transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.primary-nav a:focus-visible,
.content-card a:focus-visible,
.directory-link:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 4px;
}

.button-small {
    min-height: 40px;
    padding: 0.58rem 1rem;
    font-size: 0.88rem;
}

.header-cta {
    border-color: var(--sun);
    color: var(--ink-deep);
    background: var(--sun);
}

.button-ghost {
    color: var(--ink);
    background: transparent;
}

.button-light {
    border-color: white;
    color: var(--ink-deep);
    background: white;
}

.button-outline-light {
    border-color: rgba(255, 255, 255, 0.75);
    color: white;
    background: transparent;
}

.button-block {
    width: 100%;
    margin-top: 0.75rem;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 8rem) 0;
    background:
        radial-gradient(circle at 77% 23%, rgba(241, 184, 69, 0.26), transparent 22rem),
        linear-gradient(145deg, var(--paper) 0%, #f4ead4 48%, #e8dbc1 100%);
}

.hero::before {
    position: absolute;
    width: 400px;
    height: 400px;
    right: -180px;
    bottom: -270px;
    border: 80px solid rgba(23, 63, 53, 0.06);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.eyebrow {
    display: inline-block;
    color: var(--coral);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.entity-copy h1,
.directory-intro h2,
.section-heading h2,
.app-banner h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.hero h1 {
    max-width: 720px;
    margin-top: 1rem;
    font-size: clamp(3.4rem, 7vw, 6.4rem);
}

.hero-copy > p {
    max-width: 650px;
    margin: 1.7rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-actions,
.entity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-scene {
    position: relative;
    min-height: 500px;
    border: 1px solid rgba(23, 63, 53, 0.14);
    background:
        linear-gradient(180deg, rgba(155, 197, 211, 0.72), rgba(255, 253, 248, 0.2) 54%),
        var(--sky);
    border-radius: 48% 48% 42% 42% / 38% 38% 8% 8%;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.scene-sun {
    position: absolute;
    top: 54px;
    right: 54px;
    width: 110px;
    height: 110px;
    background: var(--sun);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(241, 184, 69, 0.15);
}

.scene-street {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 48%;
    overflow: hidden;
    background:
        linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.65) 46% 52%, transparent 52%),
        var(--ink);
    border-radius: 0 0 42px 42px;
    clip-path: polygon(0 36%, 25% 13%, 44% 36%, 67% 4%, 100% 28%, 100% 100%, 0 100%);
}

.scene-street::before,
.scene-street::after {
    position: absolute;
    bottom: 38%;
    width: 26%;
    height: 54%;
    background: var(--coral);
    border: 12px solid var(--cream);
    content: "";
}

.scene-street::before {
    left: 6%;
}

.scene-street::after {
    right: 7%;
    background: var(--sun);
}

.scene-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 1.3rem;
    background: rgba(255, 253, 248, 0.96);
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(13, 45, 39, 0.18);
}

.scene-card-main {
    top: 132px;
    left: -36px;
    width: min(320px, 72%);
    transform: rotate(-3deg);
}

.scene-card-main span,
.scene-card-main small {
    color: var(--muted);
}

.scene-card-main strong {
    margin: 0.35rem 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    line-height: 1.05;
}

.scene-card-small {
    top: 280px;
    right: -28px;
    width: 158px;
    color: white;
    background: var(--coral);
    transform: rotate(5deg);
}

.scene-card-small strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.8rem;
    line-height: 1;
}

.directory-intro {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 3rem;
    padding-top: clamp(5rem, 9vw, 8rem);
}

.directory-intro h2 {
    max-width: 650px;
    margin-top: 0.7rem;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.directory-intro > p {
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.listing-section {
    padding-top: clamp(4rem, 8vw, 7rem);
}

.listing-section:last-of-type {
    padding-bottom: 2rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.section-heading > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 1rem;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.section-heading p {
    grid-column: 2;
    max-width: 680px;
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.section-count {
    color: var(--coral);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.text-link {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    color: var(--coral);
}

.section-link {
    flex: 0 0 auto;
    margin-bottom: 0.4rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-bright);
    border-radius: var(--radius);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.content-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.card-media {
    display: block;
    height: 220px;
    overflow: hidden;
    background: var(--cream);
    text-decoration: none;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.content-card:hover .card-media img {
    transform: scale(1.035);
}

.card-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--ink-deep);
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.65), transparent 34%),
        var(--mint);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
    font-weight: 800;
}

.card-placeholder-event {
    background-color: var(--sun);
}

.card-placeholder-clavito {
    background-color: var(--sky);
}

.card-placeholder-offer {
    background-color: #f2ad90;
}

.card-placeholder-coupon {
    background-color: #e7cf75;
}

.card-body {
    padding: 1.2rem 1.25rem 1.35rem;
}

.card-meta,
.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.card-body h3 {
    margin: 0.65rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.42rem;
    line-height: 1.1;
}

.card-body h3 a {
    text-decoration: none;
}

.card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.75rem 0;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-body .card-address {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
}

.empty-state {
    padding: 3rem;
    border: 1px dashed rgba(23, 63, 53, 0.28);
    background: var(--paper);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.empty-state p {
    margin: 0.4rem 0 1rem;
    color: var(--muted);
}

.app-banner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 0.65fr);
    align-items: center;
    gap: 3rem;
    overflow: hidden;
    margin: clamp(5rem, 10vw, 9rem) 0;
    padding: clamp(2rem, 5vw, 4rem);
    color: white;
    background:
        radial-gradient(circle at 85% 20%, rgba(241, 184, 69, 0.28), transparent 16rem),
        var(--ink);
    border-radius: 36px;
}

.app-banner h2 {
    max-width: 620px;
    margin-top: 0.75rem;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.app-banner p {
    max-width: 680px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.eyebrow-light {
    color: var(--sun);
}

.app-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.app-actions span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.page-hero {
    padding: clamp(4rem, 9vw, 7rem) 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% -10%, rgba(241, 184, 69, 0.35), transparent 24rem),
        var(--paper);
}

.page-hero h1 {
    margin-top: 0.8rem;
    font-size: clamp(3rem, 6vw, 5.5rem);
}

.page-hero p {
    max-width: 680px;
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.directory-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-top: clamp(3rem, 6vw, 5rem);
}

.directory-link {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
    padding: 1.7rem;
    border: 1px solid var(--line);
    background: var(--mint);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.directory-link:nth-child(2) {
    background: var(--sun);
}

.directory-link:nth-child(3) {
    background: var(--sky);
}

.directory-link:nth-child(4) {
    background: #f2ad90;
}

.directory-link:nth-child(5) {
    background: #e7cf75;
}

.directory-link:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.directory-link strong {
    margin-top: 0.45rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.1rem;
    line-height: 1;
}

.directory-link p {
    margin: 0.8rem 0 1.2rem;
}

.directory-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
    padding-top: clamp(3rem, 7vw, 5rem);
}

.filter-panel {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 1.1rem;
    padding: 1.3rem;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 18px;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field label {
    font-size: 0.84rem;
    font-weight: 800;
}

.field input,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(23, 63, 53, 0.3);
    color: var(--ink-deep);
    background: white;
    border-radius: 10px;
}

.field input:focus,
.field select:focus {
    border-color: var(--ink);
    outline: 3px solid rgba(241, 184, 69, 0.45);
}

.results-heading {
    margin-bottom: 1.2rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--line);
}

.results-heading p {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.page-control {
    justify-self: start;
    font-weight: 800;
    text-decoration: none;
}

.page-control:last-child {
    justify-self: end;
}

.page-control.is-disabled {
    color: #8a928e;
}

.page-status {
    color: var(--muted);
    font-size: 0.9rem;
}

.entity-hero {
    padding: clamp(3rem, 7vw, 6rem) 0;
    background:
        linear-gradient(120deg, rgba(169, 212, 189, 0.4), transparent 58%),
        var(--paper);
}

.entity-hero-event {
    background:
        linear-gradient(120deg, rgba(241, 184, 69, 0.35), transparent 58%),
        var(--paper);
}

.entity-hero-clavito {
    background:
        linear-gradient(120deg, rgba(155, 197, 211, 0.42), transparent 58%),
        var(--paper);
}

.entity-hero-offer {
    background:
        linear-gradient(120deg, rgba(231, 109, 75, 0.22), transparent 58%),
        var(--paper);
}

.entity-hero-coupon {
    background:
        linear-gradient(120deg, rgba(231, 207, 117, 0.42), transparent 58%),
        var(--paper);
}

.entity-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.back-link {
    display: block;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.entity-copy h1 {
    max-width: 800px;
    margin-top: 0.7rem;
    font-size: clamp(3rem, 6.5vw, 5.8rem);
}

.lead {
    max-width: 680px;
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 1.2rem;
}

.date-callout {
    display: inline-block;
    margin: 1.2rem 0 0;
    padding: 0.55rem 0.8rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    font-weight: 800;
}

.entity-visual {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--cream);
    border-radius: 36px 36px 8px 36px;
    box-shadow: var(--shadow);
}

.entity-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entity-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background:
        radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.8), transparent 32%),
        var(--mint);
}

.entity-placeholder-event {
    background-color: var(--sun);
}

.entity-placeholder-clavito {
    background-color: var(--sky);
}

.entity-placeholder-offer {
    background-color: #f2ad90;
}

.entity-placeholder-coupon {
    background-color: #e7cf75;
}

.entity-placeholder span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 800;
    line-height: 0.85;
}

.entity-placeholder small {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entity-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
    gap: clamp(3rem, 7vw, 6rem);
    padding-top: clamp(4rem, 8vw, 7rem);
}

.entity-main {
    max-width: 760px;
}

.entity-main > h2,
.detail-section h2,
.info-card h2 {
    margin: 0.55rem 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
}

.entity-main > p,
.detail-section > p {
    color: var(--muted);
    font-size: 1.08rem;
}

.detail-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.info-card {
    position: sticky;
    top: 104px;
    padding: 1.5rem;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--radius);
}

.info-card h2 {
    font-size: 1.6rem;
}

.info-row {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
}

.info-row > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.info-row a,
.info-row strong {
    overflow-wrap: anywhere;
}

.schedule-list {
    margin: 0;
}

.schedule-list > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.5fr) 1fr;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
}

.schedule-list dt {
    font-weight: 800;
}

.schedule-list dd {
    margin: 0;
    color: var(--muted);
}

.related-links,
.occurrence-list {
    display: grid;
    gap: 0.7rem;
}

.related-links a,
.occurrence-list > div {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    background: var(--paper-bright);
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
}

.related-links a:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.occurrence-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.occurrence-list span {
    color: var(--muted);
    font-size: 0.9rem;
}

.coupon-code {
    display: inline-flex;
    min-width: 260px;
    flex-direction: column;
    margin-top: 1.2rem;
    padding: 1.2rem 1.5rem;
    border: 2px dashed var(--ink);
    background: #fff8d7;
    border-radius: 14px;
}

.coupon-code span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.coupon-code strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.7rem;
    letter-spacing: 0.08em;
}

.site-footer {
    padding: 4rem 0 1.3rem;
    color: white;
    background: var(--ink-deep);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.7fr 0.8fr 0.9fr;
    gap: 2.5rem;
}

.brand-footer {
    margin-bottom: 1rem;
}

.footer-grid p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.68);
}

.footer-grid nav,
.footer-grid > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--sun);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.8rem;
}

.legal-hero {
    padding: 6rem 0 5rem;
    color: white;
    background:
        radial-gradient(circle at 82% 18%, rgba(244, 187, 65, 0.26), transparent 24rem),
        linear-gradient(145deg, var(--ink-deep), var(--ink));
}

.legal-hero-inner {
    max-width: 940px;
}

.legal-hero h1 {
    max-width: 850px;
    margin: 0.7rem 0 1rem;
    color: white;
    font-family: var(--display);
    font-size: clamp(3.2rem, 8vw, 6.6rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.legal-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.legal-body {
    padding: 4.5rem 0 6rem;
    background: var(--paper);
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 4rem);
    border: 1px solid var(--line);
    border-radius: 32px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.legal-updated {
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.legal-document h2 {
    margin: 2.6rem 0 0.8rem;
    color: var(--ink-deep);
    font-family: var(--display);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.legal-document p,
.legal-document li {
    color: #40554f;
    font-size: 1rem;
    line-height: 1.75;
}

.legal-document ul,
.legal-document ol {
    display: grid;
    gap: 0.7rem;
    padding-left: 1.35rem;
}

.legal-document a {
    color: #0d6553;
    font-weight: 750;
    text-underline-offset: 0.18em;
}

.legal-callout {
    margin: 0 0 2.8rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(197, 136, 18, 0.35);
    border-radius: 20px;
    background: #fff8e6;
}

.legal-callout strong {
    color: var(--ink-deep);
    font-family: var(--display);
    font-size: 1.2rem;
}

.legal-callout p {
    margin: 0.45rem 0 0;
}

.legal-callout-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.legal-callout-action .button {
    flex: 0 0 auto;
    color: white;
    text-decoration: none;
}

.deletion-steps {
    counter-reset: deletion-step;
    padding: 0 !important;
    list-style: none;
}

.deletion-steps li {
    position: relative;
    min-height: 3rem;
    padding: 0.65rem 0 0.65rem 4rem;
    counter-increment: deletion-step;
}

.deletion-steps li::before {
    position: absolute;
    top: 0.45rem;
    left: 0;
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--ink);
    content: counter(deletion-step);
    font-family: var(--display);
    font-size: 1.1rem;
}

@media (max-width: 1020px) {
    .header-inner {
        grid-template-columns: auto 1fr;
    }

    .primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.8rem;
    }

    .header-cta {
        justify-self: end;
    }

    .hero-grid,
    .entity-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 780px;
    }

    .hero-scene {
        width: min(620px, 92%);
        min-height: 430px;
        margin-inline: auto;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .directory-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        gap: 0.75rem;
        padding-top: 0.7rem;
    }

    .brand small {
        display: none;
    }

    .header-cta {
        min-height: 38px;
        padding-inline: 0.8rem;
        font-size: 0.78rem;
    }

    .primary-nav {
        gap: 1.2rem;
        width: calc(100vw - 28px);
        scrollbar-width: none;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }

    .hero-scene {
        min-height: 350px;
        border-radius: 36px;
    }

    .scene-card-main {
        left: -10px;
    }

    .scene-card-small {
        top: 235px;
        right: -10px;
    }

    .directory-intro,
    .app-banner,
    .directory-layout,
    .entity-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading > div {
        grid-template-columns: 1fr;
    }

    .section-heading p {
        grid-column: 1;
    }

    .section-count {
        margin-bottom: 0.25rem;
    }

    .card-grid,
    .card-grid-three,
    .directory-link-grid {
        grid-template-columns: 1fr;
    }

    .card-media {
        height: 250px;
    }

    .app-banner {
        gap: 1.8rem;
        border-radius: 24px;
    }

    .directory-layout {
        gap: 2rem;
    }

    .filter-panel,
    .info-card {
        position: static;
    }

    .entity-copy h1 {
        font-size: clamp(2.8rem, 14vw, 4.6rem);
    }

    .entity-layout {
        display: flex;
        flex-direction: column;
    }

    .entity-main,
    .info-card {
        width: 100%;
    }

    .pagination {
        grid-template-columns: 1fr 1fr;
    }

    .page-status {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .page-control {
        grid-row: 2;
    }

    .occurrence-list > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .legal-hero {
        padding: 4.5rem 0 3.8rem;
    }

    .legal-body {
        padding: 2rem 0 4rem;
    }

    .legal-document {
        border-radius: 24px;
    }

    .legal-callout-action {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
