:root {
    --green: #6f9384;
    --green-dark: #253f2d;
    --green-deep: #14291c;
    --yellow: #ffc25e;
    --surface: #f8f5ec;
    --surface-soft: #fffdf7;
    --ink: #26302b;
    --muted: #647066;
    --line: rgba(37, 63, 45, .14);
    --shadow: 0 24px 70px rgba(37, 63, 45, .09);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
}

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

a {
    color: #315f4d;
    text-underline-offset: 3px;
}

a:hover {
    color: #163d2c;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 15px;
    border-radius: 8px;
    background: #fff;
    color: var(--green-dark);
    transform: translateY(-150%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: rgba(20, 41, 28, .97);
    box-shadow: 0 8px 28px rgba(10, 25, 16, .16);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 34px;
    width: min(1320px, calc(100% - 40px));
    min-height: 88px;
    margin-inline: auto;
}

.brand,
.brand img {
    display: block;
}

.brand img {
    width: 220px;
    height: auto;
}

.header-inner nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
}

.header-inner nav a,
.home-link {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-link {
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 999px;
}

.document-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(108deg, rgba(14, 33, 21, .97), rgba(37, 63, 45, .92)),
        url("/images/brand/robotik-hero.jpg") center 48% / cover;
    color: #fff;
}

.document-hero::after {
    position: absolute;
    right: -120px;
    bottom: -230px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 194, 94, .17);
    border-radius: 50%;
    content: "";
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(255, 194, 94, .18), transparent 26%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-block: 88px 98px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 2px;
    background: currentColor;
    content: "";
}

h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.hero-lead {
    max-width: 800px;
    margin: 26px 0 20px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
}

.updated {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.updated span {
    margin-right: 8px;
    color: var(--yellow);
}

.page-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
    padding-block: 72px 100px;
}

.contents {
    position: sticky;
    top: 116px;
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
}

.contents > p {
    margin: 0 0 12px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contents ol {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.contents li + li {
    margin-top: 7px;
}

.contents a {
    color: var(--muted);
    text-decoration: none;
}

.contents a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.legal-document {
    min-width: 0;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid rgba(37, 63, 45, .09);
    border-radius: 26px;
    background: var(--surface-soft);
    box-shadow: var(--shadow);
}

.draft-warning {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 58px;
    padding: 22px;
    border: 1px solid rgba(169, 105, 0, .28);
    border-radius: 16px;
    background: #fff6df;
}

.warning-icon {
    display: grid;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    place-items: center;
    background: var(--yellow);
    color: #493000;
    font-size: 24px;
    font-weight: 900;
}

.draft-warning h2 {
    margin: 0 0 6px;
    color: #6f4900;
    font-size: 20px;
}

.draft-warning p {
    margin: 0;
    color: #695428;
    font-size: 15px;
}

.legal-document section {
    scroll-margin-top: 112px;
}

.legal-document section + section {
    margin-top: 58px;
    padding-top: 54px;
    border-top: 1px solid var(--line);
}

.legal-document h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 22px;
    color: var(--green-dark);
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.legal-document h2 span {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.legal-document p {
    margin: 0 0 18px;
}

.legal-document ul {
    margin: 18px 0 22px;
    padding-left: 0;
    list-style: none;
}

.legal-document li {
    position: relative;
    padding-left: 25px;
}

.legal-document li + li {
    margin-top: 11px;
}

.legal-document ul li::before {
    position: absolute;
    top: .7em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 4px rgba(255, 194, 94, .18);
    content: "";
}

.contact-list {
    display: grid;
    margin: 28px 0 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.contact-list div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 13px 18px;
}

.contact-list div + div {
    border-top: 1px solid var(--line);
}

.contact-list dt {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.contact-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.callout {
    margin-top: 26px !important;
    padding: 20px 22px;
    border-left: 4px solid var(--green);
    border-radius: 0 12px 12px 0;
    background: #eef5e9;
}

.callout-warning {
    border-left-color: var(--yellow);
    background: #fff7e5;
}

footer {
    padding: 56px 0 24px;
    background: var(--green-deep);
    color: rgba(255, 255, 255, .72);
}

.footer-inner {
    display: grid;
    grid-template-columns: 230px 1fr auto;
    gap: 44px;
    align-items: start;
}

.footer-brand img {
    display: block;
    width: 210px;
    height: auto;
}

.footer-inner p {
    max-width: 480px;
    margin: 0 0 7px;
}

.footer-inner a {
    color: #fff;
}

.footer-inner nav {
    display: grid;
    gap: 8px;
}

.copyright {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    display: grid;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--green-dark);
    box-shadow: 0 10px 28px rgba(20, 41, 28, .2);
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    place-items: center;
}

@media (max-width: 960px) {
    .header-inner nav {
        display: none;
    }

    .home-link {
        margin-left: auto;
    }

    .page-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contents {
        position: static;
    }

    .contents ol {
        columns: 2;
        column-gap: 34px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
        line-height: 1.7;
    }

    .shell,
    .header-inner {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 76px;
    }

    .brand img {
        width: 164px;
    }

    .home-link {
        padding: 7px 11px;
        font-size: 12px;
    }

    .hero-content {
        padding-block: 58px 64px;
    }

    .page-layout {
        padding-block: 34px 64px;
    }

    .contents ol {
        columns: 1;
    }

    .legal-document {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .draft-warning {
        grid-template-columns: 1fr;
        margin-bottom: 44px;
    }

    .legal-document section + section {
        margin-top: 42px;
        padding-top: 40px;
    }

    .legal-document h2 {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .contact-list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

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

@media print {
    .site-header,
    .contents,
    footer,
    .back-to-top,
    .draft-warning {
        display: none;
    }

    body,
    .legal-document {
        background: #fff;
    }

    .document-hero {
        background: #fff;
        color: #000;
    }

    .hero-content {
        padding-block: 24px;
    }

    .hero-lead,
    .updated,
    .eyebrow {
        color: #333;
    }

    .page-layout {
        display: block;
        padding: 0;
    }

    .legal-document {
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}
