/* Import Montserrat from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Normalise + sensible defaults with border-box */

html {
    box-sizing: border-box;
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: #fff;
    color: #111;
    height: 100%;
}

/* Inherit box-sizing everywhere for predictable sizing */
*, *::before, *::after {
    box-sizing: inherit;
}

/* Basic layout */
body {
    margin: 0;
    min-height: 100vh;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: transparent; /* allow html background to show */
}

/* Structural elements (normalise) */
main { display: block; }
figure { margin: 0; }
figcaption { font-size: 0.9em; color: inherit; }
hr { height: 0; overflow: visible; border: none; border-top: 1px solid rgba(0,0,0,.08); }

/* Headings and text */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.25;
}

p {
    margin: 0 0 1rem 0;
}

small {
    font-size: 80%;
}

/* Lists */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

/* Images, media and svg */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
    border-style: none;
}

svg {
    vertical-align: middle;
}

/* Forms and controls (consistent rendering, inherit font) */
button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.15;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

/* Ensure accessibile focus is visible */
:focus {
    outline: 3px solid Highlight;
    outline-offset: 2px;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* Code and monospaced text */
code, kbd, pre, samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Segoe UI Mono", "Helvetica Neue", monospace;
    font-size: 1em;
}

/* Semantic elements */
details { display: block; }
summary { display: list-item; }

/* Utility: visually-hidden (screen-reader only) */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
/* Custom CSS */
/* Header */
#body_content {
    max-width: 1280px;
    margin: 0 auto;
}

#top_menu {
    background-color: #8ec63f;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#top_menu ul {
    list-style: none;
    display: flex;
    flex-flow:row wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    font-size: 25px;
    color: white;
}

#top_menu ul a {
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, text-decoration 0.3s;
}

#top_menu ul a:hover {
    text-decoration: underline;
    background-color: #668f29;
}

#top_menu img {
    height: 120px;
    background-color: white;
    padding: 3px;
}

/* Content */
#main_content h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

#main_headings {
  list-style: none;
  counter-reset: custom;
  padding: 3px;
  color: #8ec63f;
  font-weight: bold;
  font-size: 26px;
}
#main_headings>li {
    counter-increment: custom;
    margin-bottom: 15px;
}
#main_headings>li::before {
  content: counter(custom) ". ";
}
#main_headings>li.with-letter::before {
  content: "6A. ";
}
#main_headings>li.counter-reset {
  counter-set: custom 7;
}

#main_headings .clauses {
    font-size: 18px;
    font-weight: normal;
    color: #111;
}

#main_headings .clauses ol {
    margin-left: 40px;
    margin-top: 5px;
    list-style: lower-alpha;
}

#main_headings .clauses ol li {
    margin-bottom: 5px;
}

#main_headings .clauses ul {
    margin-left: 40px;
    margin-top: 5px;
    list-style: disc;
    margin-bottom: 15px;
}

#main_headings .clauses ul li {
    margin-bottom: 5px;
}

#content {
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
}
#content h1, #content h2, #content h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}
#content p {
    margin-bottom: 15px;
}
#content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}
#content a {
    color: #8ec63f;
    text-decoration: none;
}
#content a:hover {
    text-decoration: underline;
}

.clauses table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.clauses table, .clauses th, .clauses td {
    border: 1px solid black;
}
.clauses td, .clauses th {
    padding: 8px;
}
.clauses th {
    background-color: #8ec63f;
}
.clauses a {
    color: #0056b3;
}
.clauses a:hover {
    text-decoration: underline;
}

/* Footer */
#footer {
    background-color: rgb(85, 85, 85);
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    color: #8ec63f;
}
#footer #statement {
    margin: 5px 0;
    font-size: 18px;
}