@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../assets/fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../assets/fonts/montserrat-latin.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;
}

:root {
    --color-primary: #009966;
    --color-primary-dark: #007a55;
    --color-bg-dark: #0f172a;
    --color-text-dark: #10231f;
    --color-white: #ffffff;
    --font-family: 'sofia-pro', 'Inter', sans-serif;

    --display: 'Montserrat', 'Inter', sans-serif;
    --ink: #10231f;
    --text: #2e403b;
    --muted: #4c5b64;
    --line: #e1e8e4;
    --bg: #ffffff;
    --bg-soft: #eef5f1;
    --green: #009966;
    --green-700: #007a55;
    --green-50: #ecf8f2;

    --container: 1280px;
    --gutter: 40px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --section-gap: clamp(88px, 7.6vw, 128px);
    --shadow-card: 0 0 0 1px var(--line), 0 10px 32px -24px #91aab5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content {
    min-height: calc(100vh - 84px - 72px - 296px);
    padding-bottom: calc(var(--section-gap) / 2);
}

.content-container {
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 72px;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background-color: var(--bg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.page-badge svg {
    box-sizing: content-box;
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    padding: 5.5px;
    border-radius: 50%;
    background-color: var(--green);
    color: var(--color-white);
    fill: currentColor;
}

.page-title {
    margin-top: 24px;
    font-family: var(--display);
    font-size: clamp(32px, 3.4vw, 46px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}

.page-description {
    max-width: 580px;
    margin-top: 16px;
    font-size: 20px;
    line-height: 1.65;
    color: var(--muted);
}

.agreements-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.agreements-sidebar {
    width: 288px;
    min-width: 288px;
    position: sticky;
    top: 108px;
}

.agreements-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 16px;
    background-color: var(--bg);
    box-shadow: var(--shadow-card);
}

.agreement-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: none;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.agreement-tab:hover {
    background-color: var(--bg-soft);
    color: var(--ink);
}

.agreement-tab:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.agreement-tab.active {
    background-color: var(--green-50);
    color: var(--ink);
    font-weight: 700;
}

.tab-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--muted);
    fill: currentColor;
    transition: color 0.2s ease;
}

.agreement-tab.active .tab-icon {
    color: var(--green);
}

.agreements-content {
    flex: 1;
    min-width: 0;
}

.agreement-panel {
    display: none;
}

.agreement-panel.active {
    display: block;
}

.agreement-card {
    border-radius: 20px;
    background-color: var(--bg);
    box-shadow: var(--shadow-card);
}

.agreement-header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid var(--line);
}

.agreement-title {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.agreement-body {
    padding: 32px 40px 40px;
}

.contact-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 36px;
}

.contact-quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background-color: var(--bg);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

a.contact-quick-card:hover {
    border-color: var(--ink);
}

a.contact-quick-card:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.contact-quick-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--green-50);
    color: var(--green);
}

.contact-quick-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.contact-quick-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-quick-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.contact-quick-value {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.agreement-body h3 {
    margin: 36px 0 12px;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.agreement-body h3:first-child {
    margin-top: 0;
}

.agreement-body h4 {
    margin: 22px 0 8px;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 650;
    color: var(--ink);
}

.agreement-body p {
    margin-bottom: 12px;
    max-width: 72ch;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

.agreement-body ul,
.agreement-body ol {
    margin: 12px 0;
    padding-left: 22px;
}

.agreement-body li {
    max-width: 72ch;
    margin-bottom: 8px;
    padding-left: 4px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
}

.agreement-body li::marker {
    color: var(--green);
}

.agreement-body li a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.agreement-body li a:hover {
    color: var(--green-700);
    text-decoration-color: currentColor;
}

.agreement-body strong {
    font-weight: 700;
    color: var(--ink);
}

.sidebar-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    background-color: var(--bg);
    box-shadow: var(--shadow-card);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}

.sidebar-toggle .toggle-icon {
    width: 18px;
    height: 18px;
    color: var(--green);
    fill: currentColor;
    transition: transform 0.25s var(--ease);
}

.sidebar-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.footer--main {
    position: relative;
    isolation: isolate;
}

.footer--main::after {
    content: "devvitrin" / "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    font-family: var(--display);
    font-size: clamp(64px, 16vw, 240px);
    font-weight: 800;
    line-height: 0.74;
    letter-spacing: -0.06em;
    text-align: center;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.footer--site-footer {
    padding-top: 56px;
    overflow: hidden;
}

@media (max-width: 1200px) {
    :root {
        --gutter: 32px;
    }
}

@media (max-width: 1024px) {
    .agreements-sidebar {
        width: 240px;
        min-width: 240px;
    }

    .agreement-tab {
        font-size: 14px;
    }

    .agreement-header {
        padding: 26px 28px 20px;
    }

    .agreement-body {
        padding: 28px;
    }

    .contact-quick {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 16px;
    }

    .content-container {
        gap: 28px;
    }

    .page-header {
        padding-top: 44px;
    }

    .page-badge {
        font-size: 13px;
    }

    .page-title {
        margin-top: 20px;
    }

    .page-description {
        margin-top: 12px;
        font-size: 17px;
    }

    .agreements-layout {
        flex-direction: column;
        gap: 0;
    }

    .agreements-sidebar {
        position: static;
        width: 100%;
        min-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .agreements-nav {
        display: none;
    }

    .agreements-nav.open {
        display: flex;
    }

    .sidebar-toggle {
        display: flex;
    }

    .agreement-card {
        border-radius: 16px;
    }

    .agreement-header {
        padding: 22px 20px 18px;
    }

    .agreement-title {
        font-size: 22px;
    }

    .agreement-body {
        padding: 22px 20px 26px;
    }

    .agreement-body h3 {
        margin-top: 28px;
        font-size: 17px;
    }

    .agreement-body p,
    .agreement-body li {
        font-size: 15px;
    }

    .contact-quick {
        margin-bottom: 28px;
    }

    .contact-quick-card {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .contact-quick-card {
        gap: 12px;
        padding: 12px;
    }

    .contact-quick-icon {
        width: 40px;
        height: 40px;
    }

    .contact-quick-value {
        font-size: 15px;
    }
}
