* {
    box-sizing: border-box;
}

:root {
    --olive: #556b2f;
    --olive-dark: #3f5120;
    --olive-pale: #f1f2ec;
    --orange: #ff4a17;
    --ink: #3f433b;
}

body {
    margin: 0;
    color: var(--ink);
    background: #e9ebe3;
    font-family: "Open Sans", sans-serif;
    line-height: 1.7;
}

.regulations-page {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
    padding: 28px 0 56px;
}

.regulations-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.back-link,
.print-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: var(--olive-dark);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(85, 107, 47, 0.3);
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.print-button {
    color: #fff;
    background: var(--olive);
}

.back-link:hover,
.print-button:hover {
    color: #fff;
    background: var(--orange);
    border-color: var(--orange);
}

.regulations-document {
    background: #fffefa;
    border-top: 5px solid var(--orange);
    box-shadow: 0 12px 36px rgba(38, 45, 29, 0.16);
}

.document-header {
    padding: 48px 72px 38px;
    border-bottom: 1px solid #dfe3d7;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--olive);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    color: var(--olive-dark);
    font-family: "Raleway", sans-serif;
}

h1 {
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.15;
    text-transform: uppercase;
}

.document-date {
    margin: 12px 0 0;
    color: #777d70;
    font-size: 14px;
}

.regulations-list {
    max-width: 820px;
    margin: 0 auto;
    padding: 38px 48px 20px 76px;
}

.regulations-list > li {
    padding: 8px 0 8px 10px;
}

.regulations-list > li::marker {
    color: var(--olive);
    font-weight: 700;
}

.regulations-list ul {
    margin: 5px 0;
    padding-left: 24px;
}

.regulations-list ul li::marker {
    color: var(--orange);
}

.details-section {
    max-width: 820px;
    margin: 16px auto 0;
    padding: 28px 48px;
    background: var(--olive-pale);
    border-left: 4px solid var(--olive);
}

.details-section h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

.special-fisheries {
    padding: 14px 16px;
    margin: 18px 0 0;
    background: #fffefa;
    border-left: 3px solid var(--orange);
}

.periods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.periods p {
    margin: 0;
    padding: 16px;
    background: #fffefa;
    border: 1px solid #d5dcc8;
}

.periods span {
    color: var(--olive-dark);
    font-size: 20px;
    font-weight: 700;
}

.document-footer {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 48px 42px;
    color: #6b7066;
    font-size: 14px;
}

.document-footer a {
    color: #c63b15;
    font-weight: 600;
}

.copyright {
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid #dfe3d7;
    color: var(--olive-dark);
    font-weight: 700;
}

@media (max-width: 640px) {
    .regulations-page {
        width: min(100% - 20px, 960px);
        padding-top: 10px;
    }

    .regulations-toolbar {
        margin-bottom: 10px;
    }

    .back-link,
    .print-button {
        padding: 8px 10px;
        font-size: 13px;
    }

    .document-header {
        padding: 32px 22px 26px;
    }

    .regulations-list {
        padding: 24px 18px 12px 40px;
        font-size: 14px;
    }

    .details-section,
    .document-footer {
        padding-right: 22px;
        padding-left: 22px;
        font-size: 14px;
    }

    .periods {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: #fff;
    }

    .regulations-page {
        width: 100%;
        padding: 0;
    }

    .regulations-toolbar {
        display: none;
    }

    .regulations-document {
        box-shadow: none;
    }
}
