@font-face {
    font-family: 'Roboto Slab';
    src: url('../fonts/RobotoSlab-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

* {
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background: linear-gradient(90deg, #131417 0%, #1f1f1f 30%, #1f1f1f 70%, #131417 100%);
    color: #fff;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h3, h5 {
    color: #f4730b;
    font-weight: 600;
}

h2, h4, h6 {
    color: #f0e9d7;
    font-weight: 500;
}

#root, #__next {
    isolation: isolate;

    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1024px;
    min-height: 100dvh;
    margin: 0 auto;
    background-color: #1f1f1f;
    border-right: 1px solid rgba(244, 138, 38, 0.1);
    border-left: 1px solid rgba(244, 138, 38, 0.1);
    padding: 0 4rem;
}

#in-effect-date {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.date {
    color: #f4730b;
}

.container {
    padding: 3rem 4rem;
    width: 100%;
}

.section-small {
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

p {
    max-width: 75ch;
    margin-bottom: 1.25rem;
    color: #d1d1d1;
}

.legal-list {
    list-style: none;
    counter-reset: legal-counter;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.legal-list li {
    counter-increment: legal-counter;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: #d1d1d1;
}

.legal-list li::before {
    content: counter(legal-counter) ".";
    position: absolute;
    left: 0;
    color: #f4730b;
    font-weight: 700;
}

.link {
    color: #f4730b;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-bottom: 1px solid transparent;
}

.link:hover {
    border-bottom: 1px solid #f4730b;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(244, 115, 11, 0.3) 0%, transparent 100%);
    margin: 2rem 0;
    border: none;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #f4730b;
    margin-bottom: 0.5rem;
    display: block;
}

.clause-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.clause-text-sm {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.data-list {
    list-style: none;
    margin: 1.5rem 0;
}

.data-list-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid #f4730b;
    margin-bottom: 0.75rem;
    transition: background 0.3s ease;
}

.data-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.definitions-list {
    list-style: none;
    margin: 1.5rem 0;
}

.definitions-list li {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid #f4730b;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.definitions-list li strong {
    color: #f4730b;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.highlight-box {
    padding: 2rem;
    background-color: #1a1a1a;
    border: 1px dashed rgba(240, 233, 215, 0.2);
    border-radius: 4px;
    margin: 2rem 0;
}

.accent-rule {
    width: 40px;
    height: 3px;
    background-color: #f4730b;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-link {
    color: #f4730b;
    text-decoration: none;
    background-image: linear-gradient(#f4730b, #f4730b);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.3s;
}

.legal-link:hover {
    background-size: 100% 1px;
}

.brand-accent {
    color: #f4730b;
    font-style: normal;
    font-weight: 600;
}

header {
    width: 100%;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(244, 115, 11, 0.2);
    margin-bottom: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #d1d1d1;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #f4730b;
}

.lang-switch {
    font-weight: 700;
    color: #f4730b !important;
    border: 1px solid #f4730b;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

.lang-switch:hover {
    background-color: #f4730b;
    color: #131417 !important;
}

footer {
    width: 100%;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 auto;
}

.legal-entities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.legal-entity-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-left: 3px solid #f4730b;
    border-radius: 4px;
}

.legal-entity-card h3 {
    font-size: 1rem;
    color: #f4730b;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
    border: 1px solid rgba(244, 115, 11, 0.2);
    border-radius: 8px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #d1d1d1;
}

.legal-table th {
    background: rgba(244, 115, 11, 0.1);
    color: #fff;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #f4730b;
}

.legal-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.legal-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.error-page {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    #root, #__next {
        padding: 0 1.5rem;
        border: none;
    }

    .container {
        padding: 2rem 0;
    }

    nav {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        margin: 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .legal-entities-grid {
        grid-template-columns: 1fr;
    }

    #in-effect-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.25rem; }
    .section-label { font-size: 0.7rem; }
    .clause-text { font-size: 1rem; }
    .clause-text-sm { font-size: 0.85rem; }
    .definitions-list li strong { font-size: 1rem; }
    .nav-links a { font-size: 0.85rem; }
    .footer-text { font-size: 0.75rem; }
    .legal-entity-card h3 { font-size: 0.9rem; }
    .legal-table { font-size: 0.85rem; }
}
