@layer reset, base;

@layer reset {
/* Document
 * ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 :where(html) {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    text-size-adjust: 100%; /* 2 */
  }
  
  /* Sections
   * ========================================================================== */
  
  /**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Edge, Firefox, and Safari.
   */
  
  :where(h1) {
    font-size: 2em;
    margin-block-end: 0.67em;
    margin-block-start: 0.67em;
  }
  
  /* Grouping content
   * ========================================================================== */
  
  /**
   * Remove the margin on nested lists in Chrome, Edge, and Safari.
   */
  
  :where(dl, ol, ul) :where(dl, ol, ul) {
    margin-block-end: 0;
    margin-block-start: 0;
  }
  
  /**
   * 1. Add the correct box sizing in Firefox.
   * 2. Correct the inheritance of border color in Firefox.
   */
  
  :where(hr) {
    box-sizing: content-box; /* 1 */
    color: inherit; /* 2 */
    height: 0; /* 1 */
  }
  
  /* Text-level semantics
   * ========================================================================== */
  
  /**
   * Add the correct text decoration in Safari.
   */
  
  :where(abbr[title]) {
    text-decoration: underline;
    text-decoration: underline dotted;
  }
  
  /**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
  
  :where(b, strong) {
    font-weight: bolder;
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  :where(code, kbd, pre, samp) {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /**
   * Add the correct font size in all browsers.
   */
  
  :where(small) {
    font-size: 80%;
  }
  
  /* Tabular data
   * ========================================================================== */
  
  /**
   * 1. Correct table border color in Chrome, Edge, and Safari.
   * 2. Remove text indentation from table contents in Chrome, Edge, and Safari.
   */
  
  :where(table) {
    border-color: currentColor; /* 1 */
    text-indent: 0; /* 2 */
  }
  
  /* Forms
   * ========================================================================== */
  
  /**
   * Remove the margin on controls in Safari.
   */
  
  :where(button, input, select) {
    margin: 0;
  }
  
  /**
   * Remove the inheritance of text transform in Firefox.
   */
  
  :where(button) {
    text-transform: none;
  }
  
  /**
   * Correct the inability to style buttons in iOS and Safari.
   */
  
  :where(button, input:is([type="button" i], [type="reset" i], [type="submit" i])) {
    -webkit-appearance: button;
    appearance: button;
  }
  
  /**
   * Add the correct vertical alignment in Chrome, Edge, and Firefox.
   */
  
  :where(progress) {
    vertical-align: baseline;
  }
  
  /**
   * Remove the inheritance of text transform in Firefox.
   */
  
  :where(select) {
    text-transform: none;
  }
  
  /**
   * Remove the margin in Firefox and Safari.
   */
  
  :where(textarea) {
    margin: 0;
  }
  
  /**
   * 1. Correct the odd appearance in Chrome, Edge, and Safari.
   * 2. Correct the outline style in Safari.
   */
  
  :where(input[type="search" i]) {
    -webkit-appearance: textfield; /* 1 */
    appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
  }
  
  /**
   * Correct the cursor style of increment and decrement buttons in Safari.
   */
  
  ::-webkit-inner-spin-button,
  ::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
   * Correct the text style of placeholders in Chrome, Edge, and Safari.
   */
  
  ::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.54;
  }
  
  /**
   * Remove the inner padding in Chrome, Edge, and Safari on macOS.
   */
  
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  
  /**
   * 1. Correct the inability to style upload buttons in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
  
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }
  
  /**
   * Remove the inner border and padding of focus outlines in Firefox.
   */
  
  :where(button, input:is([type="button" i], [type="color" i], [type="reset" i], [type="submit" i]))::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  
  /**
   * Restore the focus outline styles unset by the previous rule in Firefox.
   */
  
  :where(button, input:is([type="button" i], [type="color" i], [type="reset" i], [type="submit" i]))::-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
   * Remove the additional :invalid styles in Firefox.
   */
  
  :where(:-moz-ui-invalid) {
    box-shadow: none;
  }
  
  /* Interactive
   * ========================================================================== */
  
  /*
   * Add the correct styles in Safari.
   */
  
  :where(dialog) {
    background-color: white;
    border: solid;
    color: black;
    height: -moz-fit-content;
    height: fit-content;
    left: 0;
    margin: auto;
    padding: 1em;
    position: absolute;
    right: 0;
    width: -moz-fit-content;
    width: fit-content;
  }
  
  :where(dialog:not([open])) {
    display: none;
  }
  
  /*
   * Add the correct display in all browsers.
   */
  
  :where(summary) {
    display: list-item;
  }
}

@layer base {
    :root {
        --color-green-900: #00492C;
        --color-green-800: #025634;
        --color-green-700: #006B3D;
        --color-green-600: #087B4D;
        --color-green-400: #2F9C70;

        --color-yellow-600: #CFB400;
        --color-yellow-400: #FFDD00;
        --color-yellow-200: #FFF198;

        --color-red-500: #E32E25;
        --color-blue-500: #5455E4;
        
        --color-text-dark: #202020;
        --color-text-light: #FFFFFF;
        --color-text-muted: #5A5A5A;
        --color-text-muted-light: #E3FFF4;

        --color-background-light: #F7F7F7;
    }

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

    * {
        scrollbar-width: thin;
        scrollbar-color: var(--color-green-900) transparent;
        scroll-behavior: smooth;
    }

    body,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    ul[class],
    ol[class],
    li,
    figure,
    figcaption,
    blockquote,
    dl,
    dd {
        margin: 0;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    body {
        font-family: "Inter", sans-serif;
        scroll-behavior: smooth;
        text-rendering: optimizeSpeed;
        line-height: 1.25;
        color: var(--color-text-dark);
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        background-color: var(--color-background-light);

        main {
            flex: 1;
        }
    }

    ul[class],
    ol[class] {
        list-style: none;
        margin: 0;
        padding: 0;
    }

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

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

    .content-wrapper {
        width: 100%;
        margin-inline: auto;
        padding-inline: 20px;
        max-width: 1380px;
    }

    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
}

.heading-1 {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: calc(74/60);
    
    @media (width <= 768px) {
        font-size: 2.1875rem;
    }
}

.heading-2 {
    font-size: 3.125rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;

    @media (width <= 768px) {
        font-size: 2.1875rem;
    }
}

header {
    background-color: var(--color-green-800);
    color: var(--color-text-light);
    padding-block: 20px;
    position: sticky;
    top: 0;
    z-index: 10;

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .logo {
        display: block;
        height: 35px;
        width: auto;

        @media (width <= 860px) {
            height: 30px;
        }

        svg {
            display: block;
            height: 100%;
            width: auto;

            path {
                fill: var(--color-text-light);
            }
        }
    }

    nav {
        display: flex;
        align-items: center;
        gap: 40px;

        @media (width <= 860px) {
            gap: 20px;
        }

        @media (width <= 700px) {
            display: none;
        }

        a {
            color: var(--color-text-light);
            text-decoration: none;
            font-size: 1rem;
            font-weight: 500;
            line-height: 1.1875;
        }
    }

    .download-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background-color: var(--color-yellow-400);
        color: var(--color-text-dark);
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.1875;
        padding: 9px 36px;
        min-height: 45px;
        border-radius: 20px;
        text-decoration: none;

        border: 1px solid var(--color-yellow-200);

        svg {
            display: block;
            height: 24px;
            width: auto;

            @media (width <= 860px) {
                display: none;
            }

            path {
                fill: var(--color-text-dark);
            }
        }

        .mobile-text {
            display: none;
        }

        @media (width <= 860px) {
            padding-inline: 20px;
            
            .mobile-text {
                display: inline;
            }

            .desktop-text {
                display: none;
            }
        }
    }
}

.content-section {
    padding-block: 20px;
    overflow-wrap: break-word;

    h1 {
        font-size: 3.125rem;
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 20px;
    
        @media (width <= 768px) {
            font-size: 2.1875rem;
        }
    }

    section {
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 1rem;

        @media (width <= 768px) {
            font-size: 1.25rem;
        }
    }

    ol {
        padding-left: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    ol > li,
    ul > li {
        min-width: 0;
    }

    ol ol {
        margin-top: 0.5rem;
        gap: 0.5rem;
    }

    ul {
        padding-left: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
        list-style: disc;
    }

    .terms-toc ul {
        list-style: none;
        padding-left: 0;
    }

    .terms-toc a {
        text-decoration: none;
    }

    .terms-toc a:hover {
        text-decoration: underline;
    }

    .terms-footer-note {
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid var(--color-green-200, #c5e0c8);
    }

    .table-scroll {
        overflow-x: auto;
        margin-block: 1rem;
    }

    table {
        width: 100%;
        min-width: 48rem;
        border-collapse: collapse;
        font-size: 0.9375rem;
    }

    th,
    td {
        border: 1px solid var(--color-green-200, #c5e0c8);
        padding: 0.75rem;
        text-align: left;
        vertical-align: top;
    }

    th {
        font-weight: 700;
        background-color: var(--color-green-50, #f0f7f1);
    }

    a {
        color: var(--color-green-700);
        text-decoration: underline;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .link-break-list {
        list-style: none;
        padding-left: 0;
        margin-top: 0.5rem;
        gap: 0.35rem;
    }

    .link-break-list a {
        display: inline-block;
        max-width: 100%;
    }
}

footer {
    background-color: var(--color-green-900);
    color: var(--color-text-light);
    padding-block: 40px;

    .footer-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;

        @media (width <=1240px) {
            flex-direction: column;
        }

        @media (width <=768px) {
            gap: 30px;
        }
    }

    .footer-content-group {
        display: contents;

        @media (width <=1240px) {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 80px;
        }

        @media (width <=768px) {
            flex-direction: column;
            gap: 30px;
        }
    }

    .copyright {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;

        img {
            height: 40px;
            width: auto;
        }

        span {
            font-size: 1rem;
            font-weight: 500;
            line-height: 1.1875;
        }
    }

    nav {
        display: flex;
        align-items: center;
        gap: 40px;

        @media (width <=475px) {
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
        }

        a {
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            line-height: calc(17/14);
        }
    }

    .socials {
        display: flex;
        align-items: center;
        gap: 40px;


        a {
            display: block;
            height: 25px;
            width: auto;
        }

        svg {
            display: block;
            height: 100%;
            width: auto;

            path {
                fill: var(--color-text-light);
            }
        }
    }

    .designed-by {
        display: flex;
        align-items: center;
        gap: 10px;

        span {
            font-size: 0.875rem;
            font-weight: 500;
            line-height: calc(17/14);
        }


        a {
            display: block;
            height: 25px;
            width: auto;

            svg {
                display: block;
                height: 100%;
                width: auto;

                path {
                    fill: var(--color-text-light);
                }
            }
        }
    }
}
